aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/GameObject.hpp
blob: 8cd1abec44f59aa36ed88c6ea3f986506c306e38 (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>
T & GameObject::add_component(Args &&... args) {
	auto & mgr = ComponentManager::get_instance();
	return mgr.add_component<T>(id, std::forward<Args>(args)...);
}

} // namespace crepe