diff options
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; |