Fixed several issues with Parser and enabled room navigation

This commit is contained in:
2026-08-21 20:02:11 -05:00
parent b1e87868c8
commit 3e50d46284
9 changed files with 91 additions and 43 deletions
+5 -2
View File
@@ -26,6 +26,8 @@ private:
nlohmann::json json;
fs::path filePath = "Resources/Rooms.json";
std::ifstream stream;
inline static Game *game_;
// Likely need to make sure Player is ADDED to room
@@ -44,13 +46,14 @@ public:
static void SetIsActive(const bool active) { isActive = active; }
static Game &instance() {
static Game *game_;
static Game &Instance() {
if (game_ == nullptr) {
game_ = new Game();
}
return *game_;
}
~Game() = default;
};
// Commands