aboutsummaryrefslogtreecommitdiff
path: root/source/World.hpp
diff options
context:
space:
mode:
authorhnOsmium0001 <[email protected]>2022-04-08 22:30:12 -0700
committerhnOsmium0001 <[email protected]>2022-04-08 22:30:12 -0700
commite47a98793e58a5dbbe76bfed27e59408e43538e4 (patch)
tree250eb4c4200efb63c493ac6f4adb83c89be10ea1 /source/World.hpp
parent3fdc6eb4f2cbeffce9b250beec4d3a2d52a3f534 (diff)
More work
Diffstat (limited to 'source/World.hpp')
-rw-r--r--source/World.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/source/World.hpp b/source/World.hpp
index ab33ecb..b12e5ad 100644
--- a/source/World.hpp
+++ b/source/World.hpp
@@ -1,13 +1,13 @@
#pragma once
-#include "GameObject.hpp"
+class GameObject;
class GameWorld {
private:
class RenderData;
RenderData* mRender;
- GameObject mRoot;
+ GameObject* mRoot;
bool mAwakened = false;
public:
@@ -19,13 +19,13 @@ public:
GameWorld(GameWorld&&) = default;
GameWorld& operator=(GameWorld&&) = default;
- bool IsAwake() const { return mAwakened; }
+ bool IsAwake() const;
void Awaken();
void Resleep();
void Update();
void Draw();
- const GameObject& GetRoot() const { return mRoot; }
- GameObject& GetRoot() { return mRoot; }
+ const GameObject& GetRoot() const;
+ GameObject& GetRoot();
};