feat: cameras saving/loading

This commit is contained in:
MihailRis
2024-07-11 22:45:57 +03:00
parent 45c4da048c
commit a013e7eefd
8 changed files with 66 additions and 17 deletions
+4
View File
@@ -19,6 +19,7 @@ class LevelEvents;
class Lighting;
class PhysicsSolver;
class ChunksStorage;
class Camera;
struct EngineSettings;
/// @brief A level, contains chunks and objects
@@ -35,6 +36,7 @@ public:
std::unique_ptr<Lighting> lighting;
std::unique_ptr<LevelEvents> events;
std::unique_ptr<Entities> entities;
std::vector<std::shared_ptr<Camera>> cameras; // move somewhere?
const EngineSettings& settings;
@@ -71,6 +73,8 @@ public:
std::shared_ptr<T> object = std::dynamic_pointer_cast<T>(objects[id]);
return object;
}
void onSave();
};
#endif /* WORLD_LEVEL_HPP_ */