blob: aac98110391095c78d4ac2b0fc04f78864bd0593 (
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)...);
}
|