| 45 | } |
| 46 | |
| 47 | bool ObjectHandler::CheckID(GAME_OBJECT_ID objectID, bool isSilent) |
| 48 | { |
| 49 | if (objectID == GAME_OBJECT_ID::ID_NO_OBJECT || objectID >= GAME_OBJECT_ID::ID_NUMBER_OBJECTS) |
| 50 | { |
| 51 | if (!isSilent) |
| 52 | { |
| 53 | TENLog( |
| 54 | fmt::format("Attempted to access unavailable slot ID {}. Check if the last accessed moveable exists in the level.", objectID), |
| 55 | LogLevel::Warning, LogConfig::Debug); |
| 56 | } |
| 57 | |
| 58 | return false; |
| 59 | } |
| 60 | |
| 61 | return true; |
| 62 | } |
| 63 | |
| 64 | ObjectInfo& ObjectHandler::operator [](int objectID) |
| 65 | { |
no test coverage detected