]> git.localhorst.tv Git - blank.git/blobdiff - src/chunk.hpp
slight lighting improvement
[blank.git] / src / chunk.hpp
index 24024f9710aa803446b850872529396908d3c52b..040a817c87197b39586b867df66262cd5cbd4e61 100644 (file)
@@ -172,6 +172,9 @@ public:
        const BlockType &GetType() const noexcept { return GetChunk().Type(GetBlock()); }
        int GetLight() const noexcept { return GetChunk().GetLight(GetBlockPos()); }
 
+       // traverse in given direction
+       BlockLookup Next(Block::Face f) const { return BlockLookup(chunk, pos, f); }
+
 private:
        Chunk *chunk;
        Chunk::Pos pos;