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

Method SendIntFloatScriptParam

Source/Online/online.cpp:1021–1027  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1019}
1020
1021void Online::SendIntFloatScriptParam(uint32_t id, const string& key, const ScriptParam& param) {
1022 if (param.IsFloat()) {
1023 Send<OnlineMessages::SPUnionMessage>(id, key, param.GetFloat(), ScriptParam::ScriptParamType::FLOAT, param.editor().type(), param.editor().GetDetails());
1024 } else {
1025 Send<OnlineMessages::SPUnionMessage>(id, key, param.GetInt(), ScriptParam::ScriptParamType::INT, param.editor().type(), param.editor().GetDetails());
1026 }
1027}
1028
1029void Online::SendStringScriptParam(uint32_t id, const string& key, const ScriptParam& param) {
1030 Send<OnlineMessages::SPStringMessage>(id, key, param.GetStringForSocket(), param.editor().type(), param.editor().GetDetails());

Callers 2

ASSetFloatMethod · 0.80
ASSetIntMethod · 0.80

Calls 4

IsFloatMethod · 0.80
GetFloatMethod · 0.45
typeMethod · 0.45
GetIntMethod · 0.45

Tested by

no test coverage detected