blob: 1152ddf06f0a7d775912232288a57007ac51e59a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#pragma once
#include "GameObject.h"
#include "ComponentManager.h"
namespace crepe {
template <typename T, typename... Args>
void GameObject::AddComponent(Args &&... args) {
ComponentManager::get_instance().AddComponent<T>(
mId, std::forward<Args>(args)...);
}
} // namespace crepe
|