aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/SceneManager.hpp
blob: 82787ed56ad7a987214dca36474ab06d901ceef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "SceneManager.h"

namespace crepe {

// Add a new concrete scene to the scene manager
template <typename T>
void SceneManager::add_scene(const std::string & name) {
	static_assert(std::is_base_of<Scene, T>::value, "T must be derived from Scene");
	scenes.emplace_back(make_unique<T>(name));
}

} // namespace crepe