2022-07-09 19:22:50 +00:00
|
|
|
#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*>();
|
2022-07-09 19:22:50 +00:00
|
|
|
SceneManager::Scenes[name] = new Scene(name);
|
2022-07-09 20:21:56 +00:00
|
|
|
*/
|
2022-07-09 19:22:50 +00:00
|
|
|
|
2022-07-09 20:21:56 +00:00
|
|
|
return new Scene(name);
|
2022-07-09 19:22:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
Scene& SceneManager::GetScene(const std::string& name)
|
|
|
|
{
|
2022-07-09 20:21:56 +00:00
|
|
|
return Scene();
|
|
|
|
//return *SceneManager::Scenes[name];
|
2022-07-09 19:22:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void SceneManager::LoadScene( Scene& scene)
|
|
|
|
{
|
2022-07-09 20:21:56 +00:00
|
|
|
//SceneManager::CurrentScene = &scene;
|
2022-07-09 19:22:50 +00:00
|
|
|
}
|