HatchitGame
ht_scenemanager_singleton.h
1 
15 #pragma once
16 
17 #include <ht_platform.h>
18 #include <ht_singleton.h>
19 #include <ht_scene.h>
20 #include <ht_scene_resource.h>
21 
22 #include <vector>
23 #include <unordered_map>
24 
25 namespace Hatchit {
26 
27  namespace Game {
28 
32  class HT_API SceneManager : public Core::Singleton<SceneManager>
33  {
34  public:
38  static void Deinitialize();
39 
44  static bool Initialize();
45 
55  static bool LoadScene(const std::string& sceneName);
56 
60  static void Update();
61 
62  SceneManager(void) = default;
63  virtual ~SceneManager(void) = default;
64 
65  private:
66  static std::string SCENE_LIST;
68  std::unordered_map<std::string, Resource::SceneHandle> m_sceneHandles;
69  Scene* m_currentScene;
70  };
71  }
72 }
Hatchit Engine Copyright(c) 2015-2016 Third-Degree.
Definition: ht_glfwkeyboard.h:21
Defines the singleton scene manager.
Definition: ht_scenemanager_singleton.h:32
Defines a scene.
Definition: ht_scene.h:44