From fc5dfd2873279d5003f8a02187a71b05a44892fa Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 16 Nov 2024 16:46:18 +0100 Subject: final touchups 2 for #26 --- src/crepe/api/Scene.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/crepe/api/Scene.h') diff --git a/src/crepe/api/Scene.h b/src/crepe/api/Scene.h index 334f306..422fffb 100644 --- a/src/crepe/api/Scene.h +++ b/src/crepe/api/Scene.h @@ -4,16 +4,18 @@ namespace crepe { +class SceneManager; class ComponentManager; class Scene { -public: +protected: Scene(ComponentManager & mgr, const std::string & name); + friend class SceneManager; +public: virtual ~Scene() = default; - virtual void load_scene() = 0; - public: + virtual void load_scene() = 0; const std::string name; protected: -- cgit v1.2.3 From 121b64b1cb6cfead5814070c8b0185d3d7308095 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 16 Nov 2024 21:37:31 +0100 Subject: `make format` --- src/crepe/api/Scene.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/crepe/api/Scene.h') diff --git a/src/crepe/api/Scene.h b/src/crepe/api/Scene.h index 422fffb..0e516b6 100644 --- a/src/crepe/api/Scene.h +++ b/src/crepe/api/Scene.h @@ -11,6 +11,7 @@ class Scene { protected: Scene(ComponentManager & mgr, const std::string & name); friend class SceneManager; + public: virtual ~Scene() = default; -- cgit v1.2.3