mirror of
https://github.com/barkeser2002/flower.git
synced 2026-09-25 13:36:14 +03:00
36 lines
602 B
C++
36 lines
602 B
C++
#pragma once
|
|
#include "../RuntimeModule.h"
|
|
#include "../Core/Core.h"
|
|
|
|
namespace Flower
|
|
{
|
|
class Scene;
|
|
|
|
class SceneManager : public IRuntimeModule
|
|
{
|
|
public:
|
|
SceneManager(ModuleManager* in);
|
|
|
|
virtual bool init() override;
|
|
virtual void release() override;
|
|
virtual void tick(const RuntimeModuleTickData& tickData) override;
|
|
|
|
Scene* getScenes();
|
|
|
|
|
|
void releaseScene();
|
|
|
|
void saveScene(const std::filesystem::path& savePath);
|
|
|
|
void loadScene(const std::filesystem::path& loadPath);
|
|
|
|
|
|
private:
|
|
std::shared_ptr<Scene> m_scene = nullptr;
|
|
|
|
private:
|
|
Scene* createEmptyScene();
|
|
};
|
|
|
|
|
|
} |