]> git.localhorst.tv Git - blank.git/blobdiff - src/world/BlockLookup.hpp
block type prototypability and new types
[blank.git] / src / world / BlockLookup.hpp
index 3d7aa0420f442d204311086ac1025e31000697df..214608ef49ce14ca06c1d2de3b69a05133081f67 100644 (file)
@@ -2,6 +2,7 @@
 #define BLANK_WORLD_BLOCKLOOKUP_HPP_
 
 #include "Block.hpp"
+#include "BlockType.hpp"
 #include "Chunk.hpp"
 
 
@@ -28,6 +29,8 @@ public:
        const BlockType &GetType() const noexcept { return GetChunk().Type(GetBlock()); }
        int GetLight() const noexcept { return GetChunk().GetLight(GetBlockPos()); }
 
+       bool FaceFilled(Block::Face f) const noexcept { return GetType().FaceFilled(GetBlock(), f); }
+
        void SetBlock(const Block &b) noexcept { GetChunk().SetBlock(GetBlockPos(), b); }
 
        // traverse in given direction