X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunkStore.hpp;h=3bbe96d8ee0068194a2a3f12303f81dc4543bf80;hb=9240fdf2e68ee014da0d0a89a7fb2f29ebf28e2d;hp=68434bbd84952489a98fa4dd9b2490ad7606cdd9;hpb=825f479edf9867938b6789215ad7ae6303596cba;p=blank.git diff --git a/src/world/ChunkStore.hpp b/src/world/ChunkStore.hpp index 68434bb..3bbe96d 100644 --- a/src/world/ChunkStore.hpp +++ b/src/world/ChunkStore.hpp @@ -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