aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Scene.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 08:47:36 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 08:47:36 +0100
commit801be9bd006a5f9f24a76067113bf1fd756aabbd (patch)
treeaa33d2d951e43aaac28e5f832e7eabd627d6a5ea /src/crepe/api/Scene.h
parente585e01b625fcdbc00709c1bbade1b542b1f6139 (diff)
Replaced Scene's name variable with get_name() method
Diffstat (limited to 'src/crepe/api/Scene.h')
-rw-r--r--src/crepe/api/Scene.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/crepe/api/Scene.h b/src/crepe/api/Scene.h
index 6647135..45595c7 100644
--- a/src/crepe/api/Scene.h
+++ b/src/crepe/api/Scene.h
@@ -19,7 +19,7 @@ protected:
* \param mgr Reference to the ComponentManager
* \param name Name of the scene
*/
- Scene(ComponentManager & mgr, const std::string & name);
+ Scene(ComponentManager & mgr);
//! SceneManager instances Scene
friend class SceneManager;
@@ -29,8 +29,11 @@ public:
public:
//! Load the scene
virtual void load_scene() = 0;
- //! The scene name
- const std::string name;
+ /**
+ * \brief Get the scene's name
+ * \return The scene's name
+ */
+ virtual std::string get_name() = 0;
protected:
//! Reference to the ComponentManager