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

Function getIntVariable

Engine/source/console/console.cpp:999–1011  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

997}
998
999S32 getIntVariable(const char *varName, S32 def)
1000{
1001 const char *objField = getObjectTokenField(varName);
1002 if (objField)
1003 {
1004 return *objField ? dAtoi(objField) : def;
1005 }
1006 else
1007 {
1008 Dictionary::Entry *entry = getVariableEntry(varName);
1009 return entry ? entry->getIntValue() : def;
1010 }
1011}
1012
1013F32 getFloatVariable(const char *varName, F32 def)
1014{

Callers 15

getCurrentModLangTableFunction · 0.85
getModLangTableFunction · 0.85
_initMethod · 0.85
SFXALDeviceMethod · 0.85
_initMethod · 0.85
processCacheMethod · 0.85
pickMasterServerFunction · 0.85
pushServerFavoritesFunction · 0.85
handleGameInfoRequestFunction · 0.85
setTextIDMethod · 0.85

Calls 4

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

Tested by

no test coverage detected