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

Method ASSetString

Source/Scripting/scriptparams.cpp:311–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311void ScriptParams::ASSetString(const std::string &key, const std::string &val) {
312 parameter_map_[key].SetString(val);
313
314 if (Online::Instance()->IsActive()) {
315 Online::Instance()->SendStringScriptParam(obj_id, key, parameter_map_[key]);
316 }
317}
318
319std::ostream &operator<<(std::ostream &os, const ScriptParam &data) {
320 os << "float " << data.f_val_ << " int: " << data.i_val_ << " string: " << data.str_val_ << std::endl;

Callers 2

CreateCharacterMethod · 0.80
DrawScriptParamsEditorFunction · 0.80

Calls 3

SendStringScriptParamMethod · 0.80
SetStringMethod · 0.45
IsActiveMethod · 0.45

Tested by

no test coverage detected