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

Method SetString

Source/Scripting/scriptparams.cpp:445–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443}
444
445void ScriptParam::SetString(const std::string &val) {
446 type_ = STRING;
447 str_val_ = val;
448 editor_.SetTextField();
449}
450
451void ScriptParam::SetJSONFromString(const std::string &val) {
452 type_ = JSON;

Callers 7

ExecuteMethod · 0.45
DrawScriptParamsEditorFunction · 0.45
DrawImGuiFunction · 0.45
ASAddStringMethod · 0.45
ASSetStringMethod · 0.45
ParseLevelXMLFunction · 0.45

Calls 1

SetTextFieldMethod · 0.80

Tested by

no test coverage detected