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.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h
index 9483dad..ccf95cb 100644
--- a/src/crepe/Component.h
+++ b/src/crepe/Component.h
@@ -3,14 +3,18 @@
namespace crepe {
+class ComponentManager;
+
class Component {
protected:
+ friend class crepe::ComponentManager;
Component(uint32_t id);
+public:
+ virtual ~Component() = default;
public:
uint32_t gameObjectId;
bool active;
- virtual ~Component() = default;
};
} // namespace crepe