Commit 0581754a authored by Alexis Girault's avatar Alexis Girault
Browse files

ENH: Add getCurrentScene() in SimulationManager

parent 50c2012f
......@@ -51,6 +51,12 @@ SimulationManager::getScene(std::string sceneName) const
return m_sceneMap.at(sceneName);
}
std::shared_ptr<Scene>
SimulationManager::getCurrentScene() const
{
return this->getScene(m_currentSceneName);
}
std::shared_ptr<Scene>
SimulationManager::createNewScene(std::string newSceneName)
{
......
......@@ -54,6 +54,7 @@ public:
// Scene
bool isSceneRegistered(std::string sceneName) const;
std::shared_ptr<Scene> getScene(std::string sceneName) const;
std::shared_ptr<Scene> getCurrentScene() const;
std::shared_ptr<Scene> createNewScene(std::string newSceneName);
std::shared_ptr<Scene> createNewScene();
void addScene(std::shared_ptr<Scene> newScene);
......@@ -83,7 +84,7 @@ public:
private:
void startModuleInNewThread(std::shared_ptr<Module>module);
void startModuleInNewThread(std::shared_ptr<Module> module);
SimulationStatus m_status = SimulationStatus::INACTIVE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment