aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/ComponentManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/crepe/ComponentManager.h')
-rw-r--r--src/crepe/ComponentManager.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/crepe/ComponentManager.h b/src/crepe/ComponentManager.h
index cf6edad..9e559dd 100644
--- a/src/crepe/ComponentManager.h
+++ b/src/crepe/ComponentManager.h
@@ -23,22 +23,22 @@ public:
public:
//! Add a component of a specific type
template <typename T, typename... Args>
- void add_component(std::uint32_t id, Args &&... args);
+ void add_component(uint32_t id, Args &&... args);
//! Deletes all components of a specific type and id
template <typename T>
- void delete_components_by_id(std::uint32_t id);
+ void delete_components_by_id(uint32_t id);
//! Deletes all components of a specific type
template <typename T>
void delete_components();
//! Deletes all components of a specific id
- void delete_all_components_of_id(std::uint32_t id);
+ void delete_all_components_of_id(uint32_t id);
//! Deletes all components
void delete_all_components();
//! Get a vector<> of all components at specific type and id
template <typename T>
std::vector<std::reference_wrapper<T>>
- get_components_by_id(std::uint32_t id) const;
+ get_components_by_id(uint32_t id) const;
//! Get a vector<> of all components of a specific type
template <typename T>
std::vector<std::reference_wrapper<T>> get_components_by_type() const;
@@ -58,3 +58,6 @@ private:
};
} // namespace crepe
+
+#include "ComponentManager.hpp"
+