aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-homemade/inc/GameObjectMax.hpp
blob: 91d51ea30f0262bc9546ff27b260e5250e209b19 (plain)
1
2
3
4
5
6
7
#include "ComponentManager.h"

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