aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-memory-efficient/inc/GameObjectMax.h
diff options
context:
space:
mode:
authorMax-001 <80035972+Max-001@users.noreply.github.com>2024-10-05 12:07:18 +0200
committerMax-001 <80035972+Max-001@users.noreply.github.com>2024-10-05 12:07:18 +0200
commitc767ef1e3d1d78e50eb1b6d9824b1c8961d68524 (patch)
tree13fe577b71a31dc82a3d31dc300a8e14d6d0fcb3 /mwe/ecs-memory-efficient/inc/GameObjectMax.h
parentc39adf3040c3f2f7cfcab5ce5b7e39b815e8131d (diff)
First setup
Diffstat (limited to 'mwe/ecs-memory-efficient/inc/GameObjectMax.h')
-rw-r--r--mwe/ecs-memory-efficient/inc/GameObjectMax.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/mwe/ecs-memory-efficient/inc/GameObjectMax.h b/mwe/ecs-memory-efficient/inc/GameObjectMax.h
index f0bcec9..62cd3e6 100644
--- a/mwe/ecs-memory-efficient/inc/GameObjectMax.h
+++ b/mwe/ecs-memory-efficient/inc/GameObjectMax.h
@@ -7,8 +7,12 @@ class GameObject {
public:
GameObject(std::uint32_t id, std::string name, std::string tag, int layer);
- template <typename T, typename... Args>
- void AddComponent(Args&&... args);
+ template<typename... Args>
+ void addSpriteComponent(Args&&... args);
+ template<typename... Args>
+ void addRigidbodyComponent(Args&&... args);
+ template<typename... Args>
+ void addColiderComponent(Args&&... args);
std::uint32_t mId;
std::string mName;