diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-10-02 16:21:01 +0200 |
---|---|---|
committer | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-10-02 16:21:01 +0200 |
commit | 3e99a6fe36e63a1e14ba62f2a6e5a3827484e4e6 (patch) | |
tree | b548b5815921a6918c4f4b0303cd0208a18fb93d /mwe/ecs-homemade/inc/ComponentManager.hpp | |
parent | 7fc607bc74e0be80b1668032348459399c311898 (diff) |
DeleteAllComponents created
Diffstat (limited to 'mwe/ecs-homemade/inc/ComponentManager.hpp')
-rw-r--r-- | mwe/ecs-homemade/inc/ComponentManager.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mwe/ecs-homemade/inc/ComponentManager.hpp b/mwe/ecs-homemade/inc/ComponentManager.hpp index 03135a8..18bd548 100644 --- a/mwe/ecs-homemade/inc/ComponentManager.hpp +++ b/mwe/ecs-homemade/inc/ComponentManager.hpp @@ -15,6 +15,16 @@ void ComponentManager::AddComponent(std::uint32_t id, Args&&... args) { } template <typename T> +void ComponentManager::DeleteComponentsById(std::uint32_t id) { + +} + +template <typename T> +void ComponentManager::DeleteComponents() { + +} + +template <typename T> std::vector<std::reference_wrapper<T>> ComponentManager::GetComponentsByID(std::uint32_t id) const { std::type_index type = typeid(T); //Determine the type of T (this is used as the key of the unordered_map<>) @@ -62,5 +72,5 @@ std::vector<std::pair<std::reference_wrapper<T>, std::uint32_t>> ComponentManage } } - return componentVector; + return componentVector; //Return the vector<> } |