aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/GameObject.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 15:27:28 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-11-07 15:27:28 +0100
commitbe58cc9342a775c21ec2ee28923414a5c612fe6e (patch)
tree6cfc5f7d4d403482afc5131f77369c99f0da1241 /src/crepe/api/GameObject.h
parent97515abfb2859e289df9d65d7106f35159749131 (diff)
add game_object_id_t type
Diffstat (limited to 'src/crepe/api/GameObject.h')
-rw-r--r--src/crepe/api/GameObject.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crepe/api/GameObject.h b/src/crepe/api/GameObject.h
index 2992787..223d72e 100644
--- a/src/crepe/api/GameObject.h
+++ b/src/crepe/api/GameObject.h
@@ -3,6 +3,8 @@
#include <cstdint>
#include <string>
+#include "types.h"
+
namespace crepe {
class Point;
@@ -27,7 +29,7 @@ public:
* \param rotation The rotation of the GameObject
* \param scale The scale of the GameObject
*/
- GameObject(uint32_t id, const std::string & name, const std::string & tag,
+ GameObject(game_object_id_t id, const std::string & name, const std::string & tag,
const Point & position, double rotation, double scale);
/**
* \brief Set the parent of this GameObject
@@ -55,7 +57,7 @@ public:
public:
//! The id of the GameObject
- const uint32_t ID;
+ const game_object_id_t ID;
};
} // namespace crepe