aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Metadata.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/Metadata.h
parent97515abfb2859e289df9d65d7106f35159749131 (diff)
add game_object_id_t type
Diffstat (limited to 'src/crepe/api/Metadata.h')
-rw-r--r--src/crepe/api/Metadata.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/Metadata.h b/src/crepe/api/Metadata.h
index fdbed41..f5e5c55 100644
--- a/src/crepe/api/Metadata.h
+++ b/src/crepe/api/Metadata.h
@@ -20,7 +20,7 @@ public:
* \param name The name of the GameObject
* \param tag The tag of the GameObject
*/
- Metadata(uint32_t game_object_id, const std::string & name,
+ Metadata(game_object_id_t id, const std::string & name,
const std::string & tag);
/**
* \brief Get the maximum number of instances for this component
@@ -35,9 +35,9 @@ public:
//! The tag of the GameObject
const std::string TAG;
//! The id of the parent GameObject (-1 if no parent)
- uint32_t parent = -1;
+ game_object_id_t parent = -1;
//! The ids of the children GameObjects
- std::vector<uint32_t> children;
+ std::vector<game_object_id_t> children;
};
} // namespace crepe