X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunkStore.hpp;h=3bbe96d8ee0068194a2a3f12303f81dc4543bf80;hb=eba29c8ad489194cd1e3cd64b5f23424ad4384ef;hp=68434bbd84952489a98fa4dd9b2490ad7606cdd9;hpb=13e676a6e49128ebc6c63b8dd08bef51d360e8e9;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