16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 21:29:18 +02:00
Files
maszyna/entitysystem/SceneManager.h
2026-04-07 23:40:03 +02:00

41 lines
539 B
C++

//
// Created by Daniu
//
#ifndef EU07_SCENEMANAGER_H
#define EU07_SCENEMANAGER_H
#pragma once
#include <memory>
#include <string>
class ECScene;
class SceneManager
{
public:
SceneManager();
~SceneManager();
void SetScene(std::unique_ptr<ECScene> scene);
void Update(float dt);
ECScene* CurrentScene();
const ECScene* CurrentScene() const;
bool HasScene() const;
private:
void SwitchScene();
private:
std::unique_ptr<ECScene> m_currentScene;
std::unique_ptr<ECScene> m_pendingScene;
};
#endif //EU07_SCENEMANAGER_H