mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
feat: cameras saving/loading
This commit is contained in:
parent
45c4da048c
commit
a013e7eefd
8 changed files with 66 additions and 17 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue