diff options
| author | Mel <einebeere@gmail.com> | 2022-10-21 01:03:18 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-21 01:03:18 +0200 |
| commit | 6ed978051668c08f5a957c97570f364dd580c807 (patch) | |
| tree | e3db93c52fcd86e26bc859d46e755290d2a7f40c /src/World/Chunk.hpp | |
| parent | 0464a83dfaebaa75d6e2d3b7431e84ebd83fccfd (diff) | |
| download | meowcraft-6ed978051668c08f5a957c97570f364dd580c807.tar.zst meowcraft-6ed978051668c08f5a957c97570f364dd580c807.zip | |
Namespace and Folder refactor
Diffstat (limited to 'src/World/Chunk.hpp')
| -rw-r--r-- | src/World/Chunk.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/World/Chunk.hpp b/src/World/Chunk.hpp index 0a5f269..7a93f5a 100644 --- a/src/World/Chunk.hpp +++ b/src/World/Chunk.hpp @@ -1,22 +1,23 @@ #pragma once #include <cstdint> +#include <optional> #include "BlockType.hpp" -#include "../Mesh.hpp" +#include "../GFX/Mesh.hpp" #include "BlockSide.hpp" +#include "../GFX/Binder.hpp" #define CHUNK_WIDTH 16 #define CHUNK_HEIGHT 32 -namespace MC { +namespace MC::World { class Chunk { public: Chunk() : m_blocks{} {}; void set(uint32_t x, uint32_t y, uint32_t z, BlockType type); - - Mesh mesh(); + GFX::Mesh mesh(); private: bool is_face_visible(uint32_t x, uint32_t y, uint32_t z, BlockSide side); |
