Enfusion Script API
|
Super root of all classes in Enforce script. More...
Public Member Functions | |
proto native external bool | IsInherited (TypeName type) |
Returns true when instance is of the type, or inherited one. | |
proto native external int | GetSizeOf () |
Get actual size of instance including size of all referenced objects. | |
proto native owned external string | ClassName () |
Returns name of class-type. | |
proto native external TypeName | Type () |
Returns typename of object's class. | |
proto external string | ToString () |
proto native external int | GetRefCount () |
Get actual count of references holding this instance. If instance is not managed, zero is returned. | |
Static Public Member Functions | |
static proto Class | Cast (Class from) |
Try to safely down-cast base class to child class. | |
Super root of all classes in Enforce script.
Try to safely down-cast base class to child class.
from
pointer when cast is successful (classes are related), or null
if casting is invalid.Example:
proto native owned external string Class.ClassName | ( | ) |
proto native external int Class.GetRefCount | ( | ) |
Get actual count of references holding this instance. If instance is not managed, zero is returned.
proto native external int Class.GetSizeOf | ( | ) |
Get actual size of instance including size of all referenced objects.
proto external string Class.ToString | ( | ) |
proto native external TypeName Class.Type | ( | ) |
Returns typename of object's class.
Example: