MtDti
Namespace: SharpPluginLoader.Core
This class represents a Monster Hunter World: Iceborne data type info.
public class MtDti : MtObject
Inheritance Object → NativeWrapper → MtObject → MtDti
Properties
Name
Gets the name of the class.
public string Name { get; }
Property Value
Next
Gets the next class in the list.
public MtDti Next { get; }
Property Value
Child
Gets the first child class of this class.
public MtDti Child { get; }
Property Value
Children
Gets all classes that inherit directly from this class.
public MtDti[] Children { get; }
Property Value
AllChildren
Gets all classes that inherit from this class (directly or indirectly).
public MtDti[] AllChildren { get; }
Property Value
Parent
Gets the parent class of this class.
public MtDti Parent { get; }
Property Value
Link
Gets the linked class of this class. This property is used by the game to form a hash table of classes.
public MtDti Link { get; }
Property Value
Size
Gets the size in bytes of the class.
public uint Size { get; }
Property Value
AllocatorIndex
Gets the index of the allocator used by this class.
public uint AllocatorIndex { get; }
Property Value
Attributes
Gets the attributes of the class.
public uint Attributes { get; }
Property Value
Id
Gets the id of the class.
public uint Id { get; }
Property Value
Instance
The native pointer.
public nint Instance { get; set; }
Property Value
Constructors
MtDti(IntPtr)
Constructs a new instance of MtDti with the specified native pointer.
public MtDti(nint instance)
Parameters
instance
IntPtr
MtDti()
Constructs a new instance of MtDti with nullptr as the native pointer.
public MtDti()
Methods
InheritsFrom(UInt32)
Checks if this class inherits from the class with the specified CRC.
public bool InheritsFrom(uint id)
Parameters
id
UInt32
The CRC hash of the class to check
Returns
Boolean
True if the class inherits from the specified class
InheritsFrom(String)
Checks if this class inherits from the class with the specified name.
public bool InheritsFrom(string name)
Parameters
name
String
The name of the class to check
Returns
Boolean
True if the class inherits from the specified class
InheritsFrom(MtDti)
Checks if this class inherits from the specified class.
public bool InheritsFrom(MtDti dti)
Parameters
dti
MtDti
The class to check for
Returns
Boolean
True if the class inherits from the specified class
CreateInstance<T>()
Creates and instantiates a new instance of the of the type represented by this class.
public T CreateInstance<T>()
Type Parameters
T
The type of the object
Returns
T
The created object
Instantiate<T>(T)
Instantiates the specified object with the type represented by this class.
public T Instantiate<T>(T obj)
Type Parameters
T
The type of the object
Parameters
obj
T
The object to instantiate
Returns
T
The object if the instantiation was successfull or null
MakeId(String)
Computes the dti id of a class from its name.
public static uint MakeId(string name)
Parameters
name
String
The name of the class
Returns
UInt32
The computed dti id of the class
Find(UInt32)
Finds a DTI by its id.
public static MtDti Find(uint id)
Parameters
id
UInt32
The id of the class
Returns
MtDti
The DTI or null if no DTI was found
Find(String)
Finds a DTI by its name.
public static MtDti Find(string name)
Parameters
name
String
The fully qualified name of the class
Returns
MtDti
The DTI or null if no DTI was found