aboutsummaryrefslogtreecommitdiff
path: root/ProjectBrussel/Game/World.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-06-03 23:30:01 -0700
committerrtk0c <[email protected]>2022-06-03 23:30:01 -0700
commit791b3f354b378769bffe623b05f1305c91b77101 (patch)
tree5409b311e6232eb4a6d3f8259b780d76b8ee1c59 /ProjectBrussel/Game/World.hpp
parent60ccc62f4934e44ad5b905fdbcf458302b8d8a09 (diff)
Changeset: 64 [WIP] Rename directoriesmaster-switch-to-build2
Diffstat (limited to 'ProjectBrussel/Game/World.hpp')
-rw-r--r--ProjectBrussel/Game/World.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/ProjectBrussel/Game/World.hpp b/ProjectBrussel/Game/World.hpp
new file mode 100644
index 0000000..288142e
--- /dev/null
+++ b/ProjectBrussel/Game/World.hpp
@@ -0,0 +1,25 @@
+#pragma once
+
+class GameObject;
+class GameWorld {
+private:
+ GameObject* mRoot;
+ bool mAwakened = false;
+
+public:
+ GameWorld();
+ ~GameWorld();
+
+ GameWorld(const GameWorld&) = delete;
+ GameWorld& operator=(const GameWorld&) = delete;
+ GameWorld(GameWorld&&) = default;
+ GameWorld& operator=(GameWorld&&) = default;
+
+ bool IsAwake() const;
+ void Awaken();
+ void Resleep();
+ void Update();
+
+ const GameObject& GetRoot() const;
+ GameObject& GetRoot();
+};