mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 14:43:34 +00:00
working on chunk generation
This commit is contained in:
28
Application/World.h
git.filemode.normal_file
28
Application/World.h
git.filemode.normal_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
|
||||
Reference in New Issue
Block a user