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

Function ScriptVarTypeAsCStr

Code/CryEngine/CryScriptSystem/ScriptSystem.h:58–81  ·  view source on GitHub ↗

Returns literal representation of the type value

Source from the content-addressed store, hash-verified

56
57// Returns literal representation of the type value
58inline const char* ScriptVarTypeAsCStr(ScriptVarType t)
59{
60 switch (t)
61 {
62 case svtNull:
63 return "Null";
64 case svtBool:
65 return "Boolean";
66 case svtString:
67 return "String";
68 case svtNumber:
69 return "Number";
70 case svtFunction:
71 return "Function";
72 case svtObject:
73 return "Table";
74 case svtUserData:
75 return "UserData";
76 case svtPointer:
77 return "Pointer";
78 default:
79 return "Unknown";
80 }
81}
82
83typedef std::set<string, stl::less_stricmp<string>> ScriptFileList;
84typedef ScriptFileList::iterator ScriptFileListItor;

Callers 1

GetParamAnyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected