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

Method ASAddString

Source/Scripting/scriptparams.cpp:249–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void ScriptParams::ASAddString(const std::string &key, const std::string &default_val) {
250 if (parameter_map_.find(key) != parameter_map_.end()) {
251 return;
252 }
253 ScriptParam sp;
254 sp.SetString(default_val);
255 parameter_map_.insert(std::pair<std::string, ScriptParam>(key, sp));
256}
257
258void ScriptParams::InsertScriptParam(const std::string &key, ScriptParam sp) {
259 if (parameter_map_.find(key) != parameter_map_.end()) {

Callers 5

LoadLevelMethod · 0.80
LoadDialogueFileMethod · 0.80
SetFromDescMethod · 0.80
InitializeMethod · 0.80
DrawImGuiFunction · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
SetStringMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected