Schema
The Schema namespace provides helpers for reading schema field offsets, types, and type sizes.
Functions
GetFieldOffset(className: string, propertyName: string)number
Retrieves the memory offset of a field in a class.
classNamestring - The name of the class. Can be found in Entity section in debug menu [F11].propertyNamestring - The name of the field.
Returned:
- number - The memory offset of the field.
GetFieldType(className: string, propertyName: string)string
Retrieves the type of a field in a class.
classNamestring - The name of the class. Can be found in Entity section in debug menu [F11].propertyNamestring - The name of the field.
Returned:
- string - The type of the field.
GetTypeSize(className: string)number
Retrieves the size of a type in a class.
classNamestring - The name of the class. Can be found in Entity section in debug menu [F11].
Returned:
- number - The size of the type.