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

Method ASSetInt

Source/Scripting/scriptparams.cpp:205–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void ScriptParams::ASSetInt(const std::string &key, int num) {
206 parameter_map_[key].SetInt(num);
207
208 if (Online::Instance()->IsActive()) {
209 Online::Instance()->SendIntFloatScriptParam(obj_id, key, parameter_map_[key]);
210 }
211}
212
213void ScriptParams::ASAddInt(const std::string &key, int default_val) {
214 if (parameter_map_.find(key) != parameter_map_.end()) {

Callers 3

PlaceLightProbesFunction · 0.80
SetFromDescMethod · 0.80
DrawScriptParamsEditorFunction · 0.80

Calls 3

SetIntMethod · 0.45
IsActiveMethod · 0.45

Tested by

no test coverage detected