diff options
author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-10-03 06:50:49 -0400 |
---|---|---|
committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-10-03 06:50:49 -0400 |
commit | 1701aa5a616f3de55b0a426f8d9e679f2c98a0c6 (patch) | |
tree | 87a6c13fb8b7884046f9fdf8c0b7dcaaf6952f28 /src/chunk.hpp | |
parent | move chunk loading into world class (diff) | |
download | minecraftvulkan-1701aa5a616f3de55b0a426f8d9e679f2c98a0c6.tar.gz minecraftvulkan-1701aa5a616f3de55b0a426f8d9e679f2c98a0c6.tar.bz2 minecraftvulkan-1701aa5a616f3de55b0a426f8d9e679f2c98a0c6.zip |
Diffstat (limited to 'src/chunk.hpp')
-rw-r--r-- | src/chunk.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index 6223fc7..5fcec17 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -68,6 +68,8 @@ class Chunk { xe::Model* getMesh(); uint8_t getBlock(int32_t x, int32_t y, int32_t z); void setBlock(int32_t x, int32_t y, int32_t z, uint8_t block); + static uint8_t getGlobalBlock(int32_t x, int32_t y, int32_t z); + static void setGlobalBlock(int32_t x, int32_t y, int32_t z, uint8_t block); static bool isGenerated(int32_t gridX, int32_t gridZ); static bool isMeshed(int32_t gridX, int32_t gridZ); |