#include "SceneManager.h" namespace crepe { // Add a new concrete scene to the scene manager template void SceneManager::add_scene(const std::string & name) { static_assert(std::is_base_of::value, "T must be derived from Scene"); scenes.emplace_back(make_unique(name)); // The first scene added, is the one that will be loaded at the beginning if (next_scene.empty()) { next_scene = name; } } } // namespace crepe