mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 22:53:35 +00:00
working on chunk generation
This commit is contained in:
@@ -13,13 +13,18 @@ class World
|
||||
World(Scop::Scene& scene);
|
||||
|
||||
[[nodiscard]] inline Scop::Scene& GetScene() noexcept { return m_scene; }
|
||||
[[nodiscard]] inline std::shared_ptr<Scop::Material> GetBlockMaterial() const { return p_block_material; }
|
||||
[[nodiscard]] Chunk& GetChunk(Scop::Vec2i position);
|
||||
|
||||
~World() = default;
|
||||
|
||||
private:
|
||||
void GenerateWorld();
|
||||
|
||||
private:
|
||||
static inline constexpr std::size_t CHUNKS_SIZE = 16;
|
||||
|
||||
std::vector<std::vector<Chunk>> m_chunks;
|
||||
std::vector<Chunk> m_chunks;
|
||||
std::shared_ptr<Scop::Material> p_block_material;
|
||||
Scop::Narrator& m_narrator;
|
||||
Scop::Scene& m_scene;
|
||||
|
||||
Reference in New Issue
Block a user