| 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() |
nothing calls this directly
no test coverage detected