MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getVariable

Function getVariable

Engine/source/console/console.cpp:1015–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013}
1014
1015const char *getVariable(const char *name, const char* def)
1016{
1017 const char *objField = getObjectTokenField(name);
1018 if (objField)
1019 {
1020 return objField;
1021 }
1022 else
1023 {
1024 Dictionary::Entry *entry = getVariableEntry(name);
1025 return entry ? entry->getStringValue() : def;
1026 }
1027}
1028
1029const char *getLocalVariable(const char *name)
1030{

Callers 15

getValueMethod · 0.85
getValueMethod · 0.85
getDocsLinkFunction · 0.85
restoreMethod · 0.85
processMethod · 0.85
evaluateFunction · 0.85
getFormattedDataFunction · 0.85
getDSOPathFunction · 0.85
spawnObjectFunction · 0.85
CMDerrorFunction · 0.85
createMethod · 0.85

Calls 3

getObjectTokenFieldFunction · 0.85
getVariableEntryFunction · 0.85
getStringValueMethod · 0.45

Tested by

no test coverage detected