2022-07-08 19:35:14 +00:00
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <map>
|
|
|
|
#include "Scene.h"
|
2022-07-09 20:21:56 +00:00
|
|
|
class SceneManager {
|
2022-07-08 19:35:14 +00:00
|
|
|
|
|
|
|
public:
|
2022-07-09 19:22:50 +00:00
|
|
|
static Scene* CreateScene(const std::string& name );
|
|
|
|
static Scene& GetScene(const std::string& name);
|
2022-07-08 19:35:14 +00:00
|
|
|
|
2022-07-09 19:22:50 +00:00
|
|
|
static void LoadScene(Scene& scene);
|
2022-07-08 19:35:14 +00:00
|
|
|
|
|
|
|
private:
|
2022-07-09 19:22:50 +00:00
|
|
|
static Scene* CurrentScene;
|
2022-07-09 20:21:56 +00:00
|
|
|
static std::map<std::string, Scene*> Scenes;
|
2022-07-08 19:35:14 +00:00
|
|
|
|
|
|
|
};
|