mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-11 22:53:35 +00:00
29 lines
480 B
C++
29 lines
480 B
C++
#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
|