diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-10-02 12:35:01 +0200 |
---|---|---|
committer | Max-001 <80035972+Max-001@users.noreply.github.com> | 2024-10-02 12:35:01 +0200 |
commit | e409986d9a21ca96ee0b491826eb0008ff6ab8e0 (patch) | |
tree | 89f04830a0e3727f53e15b4ebff70a95add40c30 /mwe/ecs-homemade/inc/GameObjectMax.h | |
parent | aedbb8b82f13d8b390419e59cea098ea73295df5 (diff) |
Changed componentsManager to allow mutliple componts of the same type for one entity (id)
Diffstat (limited to 'mwe/ecs-homemade/inc/GameObjectMax.h')
-rw-r--r-- | mwe/ecs-homemade/inc/GameObjectMax.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mwe/ecs-homemade/inc/GameObjectMax.h b/mwe/ecs-homemade/inc/GameObjectMax.h index dbfe981..f0bcec9 100644 --- a/mwe/ecs-homemade/inc/GameObjectMax.h +++ b/mwe/ecs-homemade/inc/GameObjectMax.h @@ -7,8 +7,8 @@ class GameObject { public: GameObject(std::uint32_t id, std::string name, std::string tag, int layer); - template <typename T> - void AddComponent(T* component); + template <typename T, typename... Args> + void AddComponent(Args&&... args); std::uint32_t mId; std::string mName; |