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

Method IsParamJSON

Source/Scripting/scriptparams.cpp:140–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140bool ScriptParams::IsParamJSON(const std::string &val) const {
141 ScriptParamMap::const_iterator iter = parameter_map_.find(val);
142
143 if (iter == parameter_map_.end() || !(iter->second.IsJSON())) {
144 return false;
145 } else {
146 return true;
147 }
148}
149
150float ScriptParams::ASGetFloat(const std::string &key) {
151 ScriptParamMap::iterator iter = parameter_map_.find(key);

Callers

nothing calls this directly

Calls 3

IsJSONMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected