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

Method SetJSON

Source/Scripting/scriptparams.cpp:457–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457void ScriptParam::SetJSON(SimpleJSONWrapper &JSONVal) {
458 type_ = JSON;
459 str_val_ = JSONVal.writeString(false);
460 editor_.SetCustomWindowLauncher();
461}
462
463SimpleJSONWrapper ScriptParam::GetJSON() {
464 if (type_ != JSON) {

Callers 1

ASAddJSONMethod · 0.80

Calls 2

writeStringMethod · 0.80

Tested by

no test coverage detected