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

Method ASSetFloat

Source/Scripting/scriptparams.cpp:197–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197void ScriptParams::ASSetFloat(const std::string &key, float num) {
198 parameter_map_[key].SetFloat(num);
199
200 if (Online::Instance()->IsActive()) {
201 Online::Instance()->SendIntFloatScriptParam(obj_id, key, parameter_map_[key]);
202 }
203}
204
205void ScriptParams::ASSetInt(const std::string &key, int num) {
206 parameter_map_[key].SetInt(num);

Callers 1

DrawScriptParamsEditorFunction · 0.80

Calls 3

SetFloatMethod · 0.45
IsActiveMethod · 0.45

Tested by

no test coverage detected