aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Force.cpp
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/Force.cpp
parent97515abfb2859e289df9d65d7106f35159749131 (diff)
add game_object_id_t type
Diffstat (limited to 'src/crepe/api/Force.cpp')
-rw-r--r--src/crepe/api/Force.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/crepe/api/Force.cpp b/src/crepe/api/Force.cpp
index 3c33ad3..63131ac 100644
--- a/src/crepe/api/Force.cpp
+++ b/src/crepe/api/Force.cpp
@@ -4,8 +4,7 @@
namespace crepe {
-Force::Force(uint32_t game_object_id, uint32_t magnitude, uint32_t direction)
- : Component(game_object_id) {
+Force::Force(game_object_id_t id, uint32_t magnitude, uint32_t direction) : Component(id) {
// TODO: A standard angle unit should be established for the entire engine
// and assumed to be the default everywhere. Only conversion functions should
// explicitly contain the unit (i.e. `deg_to_rad()` & `rad_to_deg()`)