blob: 120640f7f0cf30160847fec52e60d94c58e2824e (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "SceneManager.h"
using namespace crepe::api;
using namespace std;
// Add a new concrete scene to the scene manager
template <typename T>
void SceneManager::add_scene(string name) {
static_assert(is_base_of<Scene, T>::value, "T must be derived from Scene");
scenes.emplace_back(make_unique<T>(name));
}
|