From ba93a8deaf7ba4e68c25d74c58637450cbe0e056 Mon Sep 17 00:00:00 2001 From: max-001 Date: Thu, 21 Nov 2024 09:30:23 +0100 Subject: Added const --- src/example/scene_manager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/example') diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp index 7277afa..2ab45f9 100644 --- a/src/example/scene_manager.cpp +++ b/src/example/scene_manager.cpp @@ -1,6 +1,6 @@ #define private public -#include "api/LoopManager.h" +#include #include #include @@ -24,7 +24,7 @@ public: GameObject object3 = mgr.new_object("scene_1", "tag_scene_1", Vector2{2, 0}, 0, 1); } - string get_name() { return "scene1"; } + string get_name() const { return "scene1"; } }; class ConcreteScene2 : public Scene { @@ -39,7 +39,7 @@ public: GameObject object4 = mgr.new_object("scene_2", "tag_scene_2", Vector2{0, 3}, 0, 1); } - string get_name() { return "scene2"; } + string get_name() const { return "scene2"; } }; int main() { -- cgit v1.2.3