diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 10:00:12 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-21 10:00:12 +0100 |
commit | aa00be5fae68e4ccb7b592f1193d86f09105723a (patch) | |
tree | 47fcc6aad7b18723b926608e5177f677e4493801 /src/test | |
parent | 502fb8e8d1dcfe10f55fdef2cdfb71afec806204 (diff) | |
parent | 1bc04b371f2cc8740f2ee039f75101922da671d6 (diff) |
Merge branch 'master' into loek/scripts
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/SceneManagerTest.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/SceneManagerTest.cpp b/src/test/SceneManagerTest.cpp index 69e1171..dab2ce9 100644 --- a/src/test/SceneManagerTest.cpp +++ b/src/test/SceneManagerTest.cpp @@ -20,6 +20,8 @@ public: GameObject object2 = mgr.new_object("scene_1", "tag_scene_1", Vector2{1, 0}, 0, 1); GameObject object3 = mgr.new_object("scene_1", "tag_scene_1", Vector2{2, 0}, 0, 1); } + + string get_name() const { return "scene1";} }; class ConcreteScene2 : public Scene { @@ -33,6 +35,8 @@ public: GameObject object3 = mgr.new_object("scene_2", "tag_scene_2", Vector2{0, 2}, 0, 1); GameObject object4 = mgr.new_object("scene_2", "tag_scene_2", Vector2{0, 3}, 0, 1); } + + string get_name() const { return "scene2";} }; class SceneManagerTest : public ::testing::Test { @@ -42,8 +46,8 @@ public: }; TEST_F(SceneManagerTest, loadScene) { - scene_mgr.add_scene<ConcreteScene1>("scene1"); - scene_mgr.add_scene<ConcreteScene2>("scene2"); + scene_mgr.add_scene<ConcreteScene1>(); + scene_mgr.add_scene<ConcreteScene2>(); scene_mgr.load_next_scene(); |