aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Component.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 10:52:21 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-24 10:52:21 +0200
commit39054829fa69bcfa2b468015dc3852a2f8deac9f (patch)
treee7726d90fb3c23a15919360dd10bdf709e7e087a /src/crepe/Component.h
parentdd9940720cde6975f79d65e08075687c47f0aec6 (diff)
parent5447ddd896eb49ea9fd9f9191a277fd1d5730aa3 (diff)
merge master into loek/config
Diffstat (limited to 'src/crepe/Component.h')
-rw-r--r--src/crepe/Component.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h
index d9a01ac..bc44865 100644
--- a/src/crepe/Component.h
+++ b/src/crepe/Component.h
@@ -1,17 +1,22 @@
#pragma once
+#include <cstdint>
+
namespace crepe {
+class ComponentManager;
+
class Component {
protected:
- Component() = default;
+ friend class crepe::ComponentManager;
+ Component(uint32_t id);
public:
virtual ~Component() = default;
- // TODO: shouldn't this constructor be deleted because this class will never
- // directly be instantiated?
- bool active = true;
+public:
+ uint32_t game_object_id;
+ bool active;
};
} // namespace crepe