Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
TypeName Interface Reference

Public Member Functions

proto external string ToString ()
 Returns type name of variable as string.
 
proto external bool IsInherited (TypeName baseType)
 Returns true when type is the same as 'baseType', or inherited one.
 
proto external ref Managed Spawn ()
 Dynamic variant to new keyword.
 
proto external int GetVariableCount ()
 
proto external owned string GetVariableName (int vIdx)
 
proto external TypeName GetVariableType (int vIdx)
 
proto external bool GetVariableValue (Class var, int vIdx, out void val)
 

Static Public Member Functions

static proto string EnumToString (TypeName e, int enumValue)
 Return string name of enum value.
 
static proto int StringToEnum (TypeName e, string enumName)
 Return enum value from string name.
 

Static Public Attributes

const static TypeName Empty
 

Member Function Documentation

◆ EnumToString()

static proto string TypeName.EnumToString ( TypeName  e,
int  enumValue 
)
static

Return string name of enum value.

DialogPriority prio = DialogPriority.WARNING;
Print( typename.EnumToString(DialogPriority, prio) );
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
static proto string EnumToString(TypeName e, int enumValue)
Return string name of enum value.

◆ GetVariableCount()

proto external int TypeName.GetVariableCount ( )

◆ GetVariableName()

proto external owned string TypeName.GetVariableName ( int  vIdx)

◆ GetVariableType()

proto external TypeName TypeName.GetVariableType ( int  vIdx)

◆ GetVariableValue()

proto external bool TypeName.GetVariableValue ( Class  var,
int  vIdx,
out void  val 
)

◆ IsInherited()

proto external bool TypeName.IsInherited ( TypeName  baseType)

Returns true when type is the same as 'baseType', or inherited one.

Parameters
baseTypetypename
Returns
bool true when type is the same as 'baseType', or inherited one.
???

◆ Spawn()

proto external ref Managed TypeName.Spawn ( )

Dynamic variant to new keyword.

It creates new instance of class.

Returns
instance of class
???

◆ StringToEnum()

static proto int TypeName.StringToEnum ( TypeName  e,
string  enumName 
)
static

Return enum value from string name.

Print( typename.StringToEnum(DialogPriority, "WARNING") );
static proto int StringToEnum(TypeName e, string enumName)
Return enum value from string name.

◆ ToString()

proto external string TypeName.ToString ( )

Returns type name of variable as string.

Member Data Documentation

◆ Empty

const static TypeName TypeName.Empty
static

The documentation for this interface was generated from the following file: