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

Function getIntVariable

Engine/source/console/console.cpp:1051–1063  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051S32 getIntVariable(const char *varName, S32 def)
1052{
1053 const char *objField = getObjectTokenField(varName);
1054 if (objField)
1055 {
1056 return *objField ? dAtoi(objField) : def;
1057 }
1058 else
1059 {
1060 Dictionary::Entry *entry = getVariableEntry(varName);
1061 return entry ? entry->getIntValue() : def;
1062 }
1063}
1064
1065F32 getFloatVariable(const char *varName, F32 def)
1066{

Callers 15

createWindowMethod · 0.85
_setVideoModeMethod · 0.85
_processSDLEventMethod · 0.85
_updateMaterialsMethod · 0.85
getCurrentModLangTableFunction · 0.85
getModLangTableFunction · 0.85
_initMethod · 0.85
SFXALDeviceMethod · 0.85
processCacheMethod · 0.85
pickMasterServerFunction · 0.85

Calls 4

getObjectTokenFieldFunction · 0.85
dAtoiFunction · 0.85
getVariableEntryFunction · 0.85
getIntValueMethod · 0.45

Tested by

no test coverage detected