aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ComponentManager.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/ComponentManager.h
parent97515abfb2859e289df9d65d7106f35159749131 (diff)
add game_object_id_t type
Diffstat (limited to 'src/crepe/ComponentManager.h')
-rw-r--r--src/crepe/ComponentManager.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crepe/ComponentManager.h b/src/crepe/ComponentManager.h
index f3b0ace..c8c196c 100644
--- a/src/crepe/ComponentManager.h
+++ b/src/crepe/ComponentManager.h
@@ -43,7 +43,7 @@ public:
* \return The created component
*/
template <typename T, typename... Args>
- T & add_component(uint32_t id, Args &&... args);
+ T & add_component(game_object_id_t id, Args &&... args);
/**
* \brief Delete all components of a specific type and id
*
@@ -53,7 +53,7 @@ public:
* \param id The id of the GameObject this component belongs to
*/
template <typename T>
- void delete_components_by_id(uint32_t id);
+ void delete_components_by_id(game_object_id_t id);
/**
* \brief Delete all components of a specific type
*
@@ -70,7 +70,7 @@ public:
*
* \param id The id of the GameObject this component belongs to
*/
- void delete_all_components_of_id(uint32_t id);
+ void delete_all_components_of_id(game_object_id_t id);
/**
* \brief Delete all components
*
@@ -88,7 +88,7 @@ public:
*/
template <typename T>
std::vector<std::reference_wrapper<T>>
- get_components_by_id(uint32_t id) const;
+ get_components_by_id(game_object_id_t id) const;
/**
* \brief Get all components of a specific type
*