aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-memory-efficient/inc/GameObjectMax.hpp
blob: 1e952ba8bf340016dccfbd08e8aecbe751f43113 (plain)
1
2
3
4
5
6
#include "ComponentManager.h"

template <typename T, typename... Args>
void GameObject::AddComponent(Args&&... args) {
	ComponentManager::GetInstance().AddComponent<T>(mId, std::forward<Args>(args)...);
}