blob: 909b4be2aefdcf3f88ed819e25f58b2b39fd52f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include "ComponentManager.h"
template <typename... Args>
void GameObject::addSpriteComponent(Args &&... args) {
ComponentManager::GetInstance().addSpriteComponent(std::forward<Args>(args)...);
}
template <typename... Args>
void GameObject::addRigidbodyComponent(Args &&... args) {
ComponentManager::GetInstance().addRigidbodyComponent(std::forward<Args>(args)...);
}
template <typename... Args>
void GameObject::addColiderComponent(Args &&... args) {
ComponentManager::GetInstance().addColiderComponent(std::forward<Args>(args)...);
}
|