From 7f1ba9e90ddcdbcd3b6ab11c5796ef8043f71cc1 Mon Sep 17 00:00:00 2001 From: max-001 Date: Fri, 22 Nov 2024 09:39:23 +0100 Subject: Updated documentation --- src/doc/feature/scene.dox | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/doc/feature/scene.dox') diff --git a/src/doc/feature/scene.dox b/src/doc/feature/scene.dox index 5f34446..5d765f9 100644 --- a/src/doc/feature/scene.dox +++ b/src/doc/feature/scene.dox @@ -42,10 +42,8 @@ using namespace crepe; class MyScene : public Scene { public: - using Scene::Scene; - void load_scene() { - auto & mgr = this->component_manager; + ComponentManager & mgr = this->component_manager; GameObject object1 = mgr.new_object("object1", "tag_my_scene", Vector2{0, 0}, 0, 1); GameObject object2 = mgr.new_object("object2", "tag_my_scene", Vector2{1, 0}, 0, 1); } -- cgit v1.2.3 From be5ccbe24086d5d4fb407f268c649dcbc36eda6b Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 24 Nov 2024 19:03:06 +0100 Subject: nitpick #50 --- src/crepe/api/Scene.h | 3 ++- src/doc/feature/scene.dox | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/doc/feature/scene.dox') diff --git a/src/crepe/api/Scene.h b/src/crepe/api/Scene.h index 22aadab..f6fdb2a 100644 --- a/src/crepe/api/Scene.h +++ b/src/crepe/api/Scene.h @@ -1,8 +1,9 @@ #pragma once -#include "util/OptionalRef.h" #include +#include "../util/OptionalRef.h" + namespace crepe { class SceneManager; diff --git a/src/doc/feature/scene.dox b/src/doc/feature/scene.dox index bac1c87..d81df4c 100644 --- a/src/doc/feature/scene.dox +++ b/src/doc/feature/scene.dox @@ -36,7 +36,7 @@ concrete scene to be added. #include #include #include -#include +#include using namespace crepe; -- cgit v1.2.3