aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/Component.h
diff options
context:
space:
mode:
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