diff options
author | jaroWMR <jarorutjes07@gmail.com> | 2024-10-20 14:33:19 +0200 |
---|---|---|
committer | jaroWMR <jarorutjes07@gmail.com> | 2024-10-20 14:33:19 +0200 |
commit | d8483cfab70b5aca3baae6e0588924da8b54e090 (patch) | |
tree | 5326d27e365ddea1923ee64586e0c5fc3befe6a9 /src/crepe/Component.h | |
parent | 4ff1159fe5f6ee6dd8becc662bc95a93acda545a (diff) |
updated components to have an ID
Diffstat (limited to 'src/crepe/Component.h')
-rw-r--r-- | src/crepe/Component.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h index 16a4ce5..c8fb6bc 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -1,13 +1,15 @@ #pragma once +#include <cstdint> namespace crepe { class Component { public: - Component(); + Component(uint32_t id); // TODO: shouldn't this constructor be deleted because this class will never // directly be instantiated? - + //changed so it sets the id (jaro) + uint32_t gameObjectId; bool active; }; |