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

Method ASAddFloat

Source/Scripting/scriptparams.cpp:240–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238}
239
240void ScriptParams::ASAddFloat(const std::string &key, float default_val) {
241 if (parameter_map_.find(key) != parameter_map_.end()) {
242 return;
243 }
244 ScriptParam sp;
245 sp.SetFloat(default_val);
246 parameter_map_.insert(std::pair<std::string, ScriptParam>(key, sp));
247}
248
249void ScriptParams::ASAddString(const std::string &key, const std::string &default_val) {
250 if (parameter_map_.find(key) != parameter_map_.end()) {

Callers 4

ApplyScriptParamsMethod · 0.80
LoadLevelMethod · 0.80
InitializeMethod · 0.80
DrawImGuiFunction · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
SetFloatMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected