| 48 | }; |
| 49 | |
| 50 | class GameObjectAlreadyExists : public Exception |
| 51 | { |
| 52 | public: |
| 53 | GameObjectAlreadyExists(std::string_view sceneFile, std::string_view objectType, |
| 54 | std::string_view objectId, DebugInfo info) |
| 55 | : Exception("GameObjectAlreadyExists", info) |
| 56 | { |
| 57 | this->error( |
| 58 | "Scene '{}' already contains a GameObject of type '{}' with id '{}'", |
| 59 | sceneFile, objectType, objectId); |
| 60 | this->hint("Try choosing a different id to avoid name conflict"); |
| 61 | } |
| 62 | }; |
| 63 | |
| 64 | class UnknownSprite : public Exception |
| 65 | { |