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

Function getFloatVariable

Engine/source/console/console.cpp:1013–1025  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1011}
1012
1013F32 getFloatVariable(const char *varName, F32 def)
1014{
1015 const char *objField = getObjectTokenField(varName);
1016 if (objField)
1017 {
1018 return *objField ? dAtof(objField) : def;
1019 }
1020 else
1021 {
1022 Dictionary::Entry *entry = getVariableEntry(varName);
1023 return entry ? entry->getFloatValue() : def;
1024 }
1025}
1026
1027//---------------------------------------------------------------------------
1028

Callers 6

onAddMethod · 0.85
buildTimeMapMethod · 0.85
fillDropListMethod · 0.85
getFloatVariableMethod · 0.85
onRenderMethod · 0.85
onWakeMethod · 0.85

Calls 4

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

Tested by

no test coverage detected