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

Method ASAddInt

Source/Scripting/scriptparams.cpp:213–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213void ScriptParams::ASAddInt(const std::string &key, int default_val) {
214 if (parameter_map_.find(key) != parameter_map_.end()) {
215 return;
216 }
217 ScriptParam sp;
218 sp.SetInt(default_val);
219 parameter_map_.insert(std::pair<std::string, ScriptParam>(key, sp));
220}
221
222void ScriptParams::ASAddIntSlider(const std::string &key, int default_val, const std::string &details) {
223 ASAddInt(key, default_val);

Callers 1

LoadLevelMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
SetIntMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected