| 7 | namespace func |
| 8 | { |
| 9 | bool StatExists(OsiArgumentDesc & args) |
| 10 | { |
| 11 | auto statName = args[0].String; |
| 12 | |
| 13 | auto stats = gOsirisProxy->GetLibraryManager().GetStats(); |
| 14 | if (stats == nullptr) { |
| 15 | return false; |
| 16 | } |
| 17 | |
| 18 | auto object = stats->objects.Find(statName); |
| 19 | return object != nullptr; |
| 20 | } |
| 21 | |
| 22 | bool StatAttributeExists(OsiArgumentDesc & args) |
| 23 | { |