| 63 | } |
| 64 | |
| 65 | bool CRPGStatsManager::ObjectExists(FixedString statsId, FixedString type) |
| 66 | { |
| 67 | auto object = objects.Find(statsId); |
| 68 | if (object == nullptr) { |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | auto typeInfo = GetTypeInfo(object); |
| 73 | if (typeInfo == nullptr) { |
| 74 | return false; |
| 75 | } |
| 76 | |
| 77 | return typeInfo->Name == type; |
| 78 | } |
| 79 | |
| 80 | ModifierList * CRPGStatsManager::GetTypeInfo(CRPGStats_Object * object) |
| 81 | { |
no test coverage detected