MCPcopy Create free account
hub / github.com/Norbyte/ositools / GetCustomStat

Function GetCustomStat

OsiInterface/Functions/CustomStatFunctions.cpp:197–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 bool GetCustomStat(OsiArgumentDesc & args)
198 {
199 auto statName = args[0].String;
200 auto & statId = args[1].String;
201
202 auto statDefn = FindCustomStatDefinitionByName(statName);
203 if (statDefn != nullptr) {
204 statId = statDefn->Id.Str;
205 return true;
206 } else {
207 OsiWarn("Custom stat '" << statName << "' does not exist!");
208 return false;
209 }
210 }
211 }
212
213 void CustomFunctionLibrary::RegisterCustomStatFunctions()

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected