Class managing all the scenes for the game.
More...
#include <SceneManager.hpp>
Class managing all the scenes for the game.
◆ SceneManager()
GameEngine::SceneManager::SceneManager |
( |
| ) |
|
|
inline |
◆ ~SceneManager()
GameEngine::SceneManager::~SceneManager |
( |
| ) |
|
|
default |
◆ addEntityToCurrentSceneUnload()
void GameEngine::SceneManager::addEntityToCurrentSceneUnload |
( |
Entity |
entity | ) |
|
◆ loadScene()
void GameEngine::SceneManager::loadScene |
( |
const std::string & |
name | ) |
|
Loads a scene. Previous scene needs to be unregister before or the scenes will overlap.
- Parameters
-
name | Name of the scene to load. |
◆ registerScene()
void GameEngine::SceneManager::registerScene |
( |
const std::string & |
name, |
|
|
std::unique_ptr< IScene > && |
scene |
|
) |
| |
Registers a new scene.
- Parameters
-
name | Name of the scene to register. Will be used when loading the scene. |
scene | Unique pointer to the scene class to register. The scene will be moved in the SceneManager. |
◆ unloadScene()
void GameEngine::SceneManager::unloadScene |
( |
| ) |
|
Unloads the currently loaded scene.
◆ unregisterScene()
void GameEngine::SceneManager::unregisterScene |
( |
const std::string & |
name | ) |
|
Unregisters a scene.
- Parameters
-
name | Name of the scene to unregister. |
◆ updateCurrentScene()
void GameEngine::SceneManager::updateCurrentScene |
( |
| ) |
|
Updates the current scene.
The documentation for this class was generated from the following files: