MtProperty

Namespace: SharpPluginLoader.Core

Represents a property of a MtObject.

public class MtProperty : NativeWrapper

Inheritance ObjectNativeWrapperMtProperty

Properties

Name

The name of the property.

public string Name { get; }

Property Value

String

Comment

An optional comment for the property.

public string Comment { get; }

Property Value

String

HashName

Returns the comment if it exists, otherwise returns the name.

public string HashName { get; }

Property Value

String

Remarks:

Whatever this property returns is used for hash lookups.

Hash

The hash of the property's name.

public uint Hash { get; }

Property Value

UInt32

Type

The type of the property.

public PropType Type { get; }

Property Value

PropType

Attr

The attributes of the property.

public uint Attr { get; }

Property Value

UInt32

Owner

The owning object of the property.

public MtObject Owner { get; }

Property Value

MtObject

Get

The getter method of the property. (If it has one)

public nint Get { get; }

Property Value

IntPtr

GetCount

The GetCount method of the property. (If it is a dynamic array)

public nint GetCount { get; }

Property Value

IntPtr

Set

The setter method of the property. (If it has one)

public nint Set { get; }

Property Value

IntPtr

Realloc

The realloc method of the property. (If it is a dynamic array)

public nint Realloc { get; }

Property Value

IntPtr

Index

public uint Index { get; }

Property Value

UInt32

Previous

The previous property in the object's property list.

public MtProperty Previous { get; }

Property Value

MtProperty

Next

The next property in the object's property list.

public MtProperty Next { get; }

Property Value

MtProperty

IsArray

public bool IsArray { get; }

Property Value

Boolean

IsProperty

public bool IsProperty { get; }

Property Value

Boolean

Instance

The native pointer.

public nint Instance { get; set; }

Property Value

IntPtr

Constructors

MtProperty(IntPtr)

public MtProperty(nint instance)

Parameters

instance IntPtr

MtProperty()

public MtProperty()