aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SceneManager.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-20 11:42:23 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-20 11:42:23 +0100
commite585e01b625fcdbc00709c1bbade1b542b1f6139 (patch)
tree7ab095da8955a4299110a98a3b4f11de2087edde /src/crepe/api/SceneManager.h
parent0476a8e9dbe7afb422862f7b1c15aaed7f3c416e (diff)
Added Doxygen comments/explanation for GameObjects and Scenes
Diffstat (limited to 'src/crepe/api/SceneManager.h')
-rw-r--r--src/crepe/api/SceneManager.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crepe/api/SceneManager.h b/src/crepe/api/SceneManager.h
index e854794..16d6004 100644
--- a/src/crepe/api/SceneManager.h
+++ b/src/crepe/api/SceneManager.h
@@ -10,8 +10,15 @@ namespace crepe {
class ComponentManager;
+/**
+ * \brief Manages scenes
+ *
+ * This class manages scenes. It can add new scenes and load them. It also manages the current scene
+ * and the next scene.
+ */
class SceneManager {
public:
+ //! \param mgr Reference to the ComponentManager
SceneManager(ComponentManager & mgr);
public:
@@ -35,8 +42,11 @@ public:
void load_next_scene();
private:
+ //! Vector of scenes
std::vector<std::unique_ptr<Scene>> scenes;
+ //! Next scene to load
std::string next_scene;
+ //! Reference to the ComponentManager
ComponentManager & component_manager;
};