aboutsummaryrefslogtreecommitdiff
path: root/mwe/ecs-memory-efficient/inc/ComponentManager.hpp
blob: a914a6b3b392553ab43af65ae49059dc6d7acef8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
template <typename... Args>
void ComponentManager::addSpriteComponent(Args &&... args) {
	mSpriteContainer.pushBack(std::forward<Args>(args)...);
}

template <typename... Args>
void ComponentManager::addRigidbodyComponent(Args &&... args) {
	mRigidbodyContainer.pushBack(std::forward<Args>(args)...);
}

template <typename... Args>
void ComponentManager::addColiderComponent(Args &&... args) {
	mColiderContainer.pushBack(std::forward<Args>(args)...);
}