diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-10-16 08:35:17 +0200 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-10-16 08:35:17 +0200 |
commit | 5b158d9705f9e912f938f22f2389d6f1dc783b2a (patch) | |
tree | 7addd40affd1e15b5e6c4ea108847ef6a6eef7ea /mwe/ecs-homemade/inc/ComponentManager.hpp | |
parent | 2f644ac353f65cd182be13549e32e9b9409f7aad (diff) | |
parent | 579824011d5e8776e2079d6624a39535517760ff (diff) |
Merge remote-tracking branch 'origin/master' into max/POC-ECS-homemade
Diffstat (limited to 'mwe/ecs-homemade/inc/ComponentManager.hpp')
-rw-r--r-- | mwe/ecs-homemade/inc/ComponentManager.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mwe/ecs-homemade/inc/ComponentManager.hpp b/mwe/ecs-homemade/inc/ComponentManager.hpp index 161ce71..d6da8e8 100644 --- a/mwe/ecs-homemade/inc/ComponentManager.hpp +++ b/mwe/ecs-homemade/inc/ComponentManager.hpp @@ -42,7 +42,8 @@ void ComponentManager::DeleteComponentsById(std::uint32_t id) { } } -template <typename T> void ComponentManager::DeleteComponents() { +template <typename T> +void ComponentManager::DeleteComponents() { std::type_index type = typeid( T); //Determine the type of T (this is used as the key of the unordered_map<>) |