when one change the current scene, menu controllable system update current button to use

This commit is contained in:
arthur.jamet
2021-06-08 11:39:58 +02:00
parent ff74b8c2d3
commit 036ecb960e
8 changed files with 103 additions and 38 deletions
+6 -2
View File
@@ -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 = {};
};
}