working on chunk generation

This commit is contained in:
2025-05-09 09:37:23 +02:00
parent 2336835250
commit 8c94d86fd4
18 changed files with 242 additions and 155 deletions

28
Application/World.h git.filemode.normal_file
View File

@@ -0,0 +1,28 @@
#ifndef WORLD_H
#define WORLD_H
#include <vector>
#include <ScopGraphics.h>
#include <Chunk.h>
class World
{
public:
World(Scop::Scene& scene);
[[nodiscard]] inline Scop::Scene& GetScene() noexcept { return m_scene; }
~World() = default;
private:
static inline constexpr std::size_t CHUNKS_SIZE = 16;
std::vector<std::vector<Chunk>> m_chunks;
std::shared_ptr<Scop::Material> p_block_material;
Scop::Narrator& m_narrator;
Scop::Scene& m_scene;
};
#endif