diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 15:27:28 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-11-07 15:27:28 +0100 |
commit | be58cc9342a775c21ec2ee28923414a5c612fe6e (patch) | |
tree | 6cfc5f7d4d403482afc5131f77369c99f0da1241 /src/crepe/Component.h | |
parent | 97515abfb2859e289df9d65d7106f35159749131 (diff) |
add game_object_id_t type
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 41badc3..ee795f4 100644 --- a/src/crepe/Component.h +++ b/src/crepe/Component.h @@ -1,5 +1,7 @@ #pragma once +#include "types.h" + #include <cstdint> namespace crepe { @@ -19,7 +21,7 @@ protected: /** * \param id The id of the GameObject this component belongs to */ - Component(uint32_t id); + Component(game_object_id_t id); public: virtual ~Component() = default; @@ -36,7 +38,7 @@ public: public: //! The id of the GameObject this component belongs to - const uint32_t GAME_OBJECT_ID; + const game_object_id_t GAME_OBJECT_ID; //! Whether the component is active bool active = true; }; |