mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-03-03 20:46:37 +00:00
fixing crash issue
This commit is contained in:
@@ -17,6 +17,7 @@ enum class GenerationState: std::uint8_t
|
||||
{
|
||||
Ready,
|
||||
Working,
|
||||
Quitting,
|
||||
Finished,
|
||||
};
|
||||
|
||||
@@ -25,6 +26,8 @@ class World
|
||||
public:
|
||||
World(Scop::Scene& scene);
|
||||
|
||||
void Quit() noexcept;
|
||||
|
||||
[[nodiscard]] inline Scop::Scene& GetScene() noexcept { return m_scene; }
|
||||
[[nodiscard]] inline std::shared_ptr<Scop::Material> GetBlockMaterial() const { return p_block_material; }
|
||||
[[nodiscard]] Scop::NonOwningPtr<Chunk> GetChunk(Scop::Vec2i position);
|
||||
|
||||
Reference in New Issue
Block a user