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

Method SetScriptParams

Source/Objects/lightprobeobject.cpp:43–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void LightProbeObject::SetScriptParams(const ScriptParamMap& spm) {
44 Object::SetScriptParams(spm);
45 if (scenegraph_) {
46 bool negative = (GetScriptParams()->ASGetInt("Negative") == 1);
47 bool success = scenegraph_->light_probe_collection.SetNegative(probe_id_, negative);
48 LOG_ASSERT(success);
49 }
50}
51
52void LightProbeObject::Moved(Object::MoveType type) {
53 Object::Moved(type);

Callers

nothing calls this directly

Calls 3

GetScriptParamsFunction · 0.85
ASGetIntMethod · 0.80
SetNegativeMethod · 0.80

Tested by

no test coverage detected