From dff76318169b9272725d58519da4dbf813b7e7a9 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 21 May 2024 11:57:31 +0200 Subject: [PATCH] feat: added get_levels to game root --- game_root.cpp | 4 ++++ game_root.hpp | 1 + 2 files changed, 5 insertions(+) diff --git a/game_root.cpp b/game_root.cpp index 2c4015d..9cd20b8 100644 --- a/game_root.cpp +++ b/game_root.cpp @@ -208,6 +208,10 @@ Ref GameRoot3D::get_first_boot_level() const { return this->first_boot_level; } +HashMap &GameRoot3D::get_levels() { + return this->levels; +} + void GameRoot3D::grab_singleton() { if(GameRoot3D::has_singleton()) { this->set_process_mode(PROCESS_MODE_DISABLED); diff --git a/game_root.hpp b/game_root.hpp index a776372..d35894f 100644 --- a/game_root.hpp +++ b/game_root.hpp @@ -65,6 +65,7 @@ public: Ref get_game_state() const; void set_first_boot_level(Ref level); Ref get_first_boot_level() const; + HashMap &get_levels(); protected: // attempt to make 'this' the current singleton instance void grab_singleton();