]> git.localhorst.tv Git - blank.git/blobdiff - src/world/ChunkIndex.hpp
sped up chunk generation a little
[blank.git] / src / world / ChunkIndex.hpp
index 91fc704909114a2980f60346364d1a4d7ff97934..97956e9c4d47b434a6f6981bb9908af76724b761 100644 (file)
@@ -23,8 +23,14 @@ public:
 
 public:
        bool InRange(const Chunk::Pos &) const noexcept;
+       bool IsBorder(const Chunk::Pos &) const noexcept;
+       int Distance(const Chunk::Pos &) const noexcept;
+
+       bool HasAllSurrounding(const Chunk::Pos &) const noexcept;
+
        int IndexOf(const Chunk::Pos &) const noexcept;
        Chunk::Pos PositionOf(int) const noexcept;
+
        /// returns nullptr if given position is out of range or the chunk
        /// is not loaded, so also works as a "has" function
        Chunk *Get(const Chunk::Pos &) noexcept;