]> git.localhorst.tv Git - blank.git/blobdiff - src/world/ChunkStore.hpp
composite model is the canonical model
[blank.git] / src / world / ChunkStore.hpp
index 68434bbd84952489a98fa4dd9b2490ad7606cdd9..3bbe96d8ee0068194a2a3f12303f81dc4543bf80 100644 (file)
@@ -23,6 +23,8 @@ public:
        ChunkIndex &MakeIndex(const Chunk::Pos &base, int extent);
        void UnregisterIndex(ChunkIndex &);
 
+       ChunkIndex *ClosestIndex(const Chunk::Pos &pos);
+
        /// returns nullptr if given position is not loaded
        Chunk *Get(const Chunk::Pos &);
        /// returns nullptr if given position is not indexed