MtProperty
Namespace: SharpPluginLoader.Core
Represents a property of a MtObject.
public class MtProperty : NativeWrapper
Inheritance Object → NativeWrapper → MtProperty
Properties
Name
The name of the property.
public string Name { get; }
Property Value
Comment
An optional comment for the property.
public string Comment { get; }
Property Value
HashName
Returns the comment if it exists, otherwise returns the name.
public string HashName { get; }
Property Value
Remarks:
Whatever this property returns is used for hash lookups.
Hash
The hash of the property's name.
public uint Hash { get; }
Property Value
Type
The type of the property.
public PropType Type { get; }
Property Value
Attr
The attributes of the property.
public uint Attr { get; }
Property Value
Owner
The owning object of the property.
public MtObject Owner { get; }
Property Value
Get
The getter method of the property. (If it has one)
public nint Get { get; }
Property Value
GetCount
The GetCount method of the property. (If it is a dynamic array)
public nint GetCount { get; }
Property Value
Set
The setter method of the property. (If it has one)
public nint Set { get; }
Property Value
Realloc
The realloc method of the property. (If it is a dynamic array)
public nint Realloc { get; }
Property Value
Index
public uint Index { get; }
Property Value
Previous
The previous property in the object's property list.
public MtProperty Previous { get; }
Property Value
Next
The next property in the object's property list.
public MtProperty Next { get; }
Property Value
IsArray
public bool IsArray { get; }
Property Value
IsProperty
public bool IsProperty { get; }
Property Value
Instance
The native pointer.
public nint Instance { get; set; }
Property Value
Constructors
MtProperty(IntPtr)
public MtProperty(nint instance)
Parameters
instance
IntPtr
MtProperty()
public MtProperty()