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

Function getFloatVariable

Engine/source/console/console.cpp:1065–1077  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063}
1064
1065F32 getFloatVariable(const char *varName, F32 def)
1066{
1067 const char *objField = getObjectTokenField(varName);
1068 if (objField)
1069 {
1070 return *objField ? dAtof(objField) : def;
1071 }
1072 else
1073 {
1074 Dictionary::Entry *entry = getVariableEntry(varName);
1075 return entry ? entry->getFloatValue() : def;
1076 }
1077}
1078
1079//---------------------------------------------------------------------------
1080

Callers 11

setupPassMethod · 0.85
onAddMethod · 0.85
buildTimeMapMethod · 0.85
fillDropListMethod · 0.85
prepRenderImageMethod · 0.85
sampleSideFunction · 0.85
calculateSHTermsFunction · 0.85
getFloatVariableMethod · 0.85
onRenderMethod · 0.85
onWakeMethod · 0.85

Calls 4

getObjectTokenFieldFunction · 0.85
dAtofFunction · 0.85
getVariableEntryFunction · 0.85
getFloatValueMethod · 0.45

Tested by

no test coverage detected