MCPcopy Create free account
hub / github.com/MergHQ/CRYENGINE / ScriptAnyTypeToString

Function ScriptAnyTypeToString

Code/CryEngine/CryScriptSystem/ScriptSystem.h:28–55  ·  view source on GitHub ↗

Returns literal representation of the type value

Source from the content-addressed store, hash-verified

26
27// Returns literal representation of the type value
28inline const char* ScriptAnyTypeToString(ScriptAnyType type)
29{
30 switch (type)
31 {
32 case ANY_ANY:
33 return "Any";
34 case ANY_TNIL:
35 return "Null";
36 case ANY_TBOOLEAN:
37 return "Boolean";
38 case ANY_TSTRING:
39 return "String";
40 case ANY_TNUMBER:
41 return "Number";
42 case ANY_TFUNCTION:
43 return "Function";
44 case ANY_TTABLE:
45 return "Table";
46 case ANY_TUSERDATA:
47 return "UserData";
48 case ANY_THANDLE:
49 return "Pointer";
50 case ANY_TVECTOR:
51 return "Vec3";
52 default:
53 return "Unknown";
54 }
55}
56
57// Returns literal representation of the type value
58inline const char* ScriptVarTypeAsCStr(ScriptVarType t)

Callers 1

GetParamAnyMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected