MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / IsParamFloat

Method IsParamFloat

Source/Scripting/scriptparams.cpp:120–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool ScriptParams::IsParamFloat(const std::string &val) const {
121 ScriptParamMap::const_iterator iter = parameter_map_.find(val);
122
123 if (iter == parameter_map_.end() || !(iter->second.IsFloat())) {
124 return false;
125 } else {
126 return true;
127 }
128}
129
130bool ScriptParams::IsParamInt(const std::string &val) const {
131 ScriptParamMap::const_iterator iter = parameter_map_.find(val);

Callers

nothing calls this directly

Calls 3

IsFloatMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected