blob: be3ffa2e5c3e9aef0f36ebf88e6e13e6c223be2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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)...);
}
|