Fixed several issues with Parser and enabled room navigation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user