mirror of
https://github.com/zoriya/Bomberman.git
synced 2026-06-04 18:46:22 +00:00
when one change the current scene, menu controllable system update current button to use
This commit is contained in:
@@ -14,6 +14,7 @@ namespace BBM
|
||||
//! @brief A class representing the current game state. This allow one to retain information between update calls.
|
||||
class GameState
|
||||
{
|
||||
public:
|
||||
//! @brief The list of scenes available.
|
||||
enum SceneID
|
||||
{
|
||||
@@ -27,9 +28,12 @@ namespace BBM
|
||||
|
||||
|
||||
//! @brief The currently loaded scene
|
||||
SceneID currentScene = MainMenuScene;
|
||||
SceneID currentScene = TitleScreenScene;
|
||||
|
||||
//! @brief The next scene to load (if smae as currentScene, nothing to do)
|
||||
SceneID nextScene = TitleScreenScene;
|
||||
|
||||
//! @brief The list of loaded scenes.
|
||||
std::unordered_map<SceneID, WAL::Scene> _loadedScenes = {};
|
||||
std::unordered_map<SceneID, std::shared_ptr<WAL::Scene>> _loadedScenes = {};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user