diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 15:12:01 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-06 15:12:01 +0200 |
commit | 39815f58e3842bb28e644e83111a619bd1374855 (patch) | |
tree | 39dd4631505fc063bb4336c25b4469cb2190fda8 /src/crepe/ComponentManager.h | |
parent | f8bc2a06a90c0ee172054db7ae2e1fdae09d14a3 (diff) |
add components_internal example
Diffstat (limited to 'src/crepe/ComponentManager.h')
-rw-r--r-- | src/crepe/ComponentManager.h | 11 |
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" + |