diff options
Diffstat (limited to 'src/crepe/Component.h')
-rw-r--r-- | src/crepe/Component.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/crepe/Component.h b/src/crepe/Component.h index d9a01ac..8a42a45 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -1,4 +1,5 @@ #pragma once +#include <cstdint> namespace crepe { @@ -7,11 +8,13 @@ protected: Component() = default; public: - virtual ~Component() = default; + Component(uint32_t id); + virtual ~Component() {} // TODO: shouldn't this constructor be deleted because this class will never // directly be instantiated? - - bool active = true; + //changed so it sets the id (jaro) + uint32_t gameObjectId; + bool active; }; } // namespace crepe |