YoggieEngine/BarinkEngine/Scene/SceneManager.cpp

22 lines
426 B
C++
Raw Normal View History

#include "Scene/SceneManager.h"
Scene* SceneManager::CreateScene(const std::string& name)
{
2022-07-09 20:21:56 +00:00
/*
Scenes = std::map<std::string, Scene*>();
SceneManager::Scenes[name] = new Scene(name);
2022-07-09 20:21:56 +00:00
*/
2022-07-09 20:21:56 +00:00
return new Scene(name);
}
Scene& SceneManager::GetScene(const std::string& name)
{
2022-07-09 20:21:56 +00:00
return Scene();
//return *SceneManager::Scenes[name];
}
void SceneManager::LoadScene( Scene& scene)
{
2022-07-09 20:21:56 +00:00
//SceneManager::CurrentScene = &scene;
}