X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2FChunkLoader.hpp;h=7cc8dfca917cce00ad8234d9f4339126173f2c7f;hb=dbfcb12348b80e2582f710acb1e4ed0011889ba2;hp=b2730a67e15fdcaa2cf1b1e7039cf56d1c507427;hpb=551573ecb04969696f916aeb5485658e298a7f6b;p=blank.git diff --git a/src/world/ChunkLoader.hpp b/src/world/ChunkLoader.hpp index b2730a6..7cc8dfc 100644 --- a/src/world/ChunkLoader.hpp +++ b/src/world/ChunkLoader.hpp @@ -33,6 +33,7 @@ public: void QueueSurrounding(const Chunk::Pos &); std::list &Loaded() noexcept { return loaded; } + const WorldSave &SaveFile() const noexcept { return save; } Chunk *Loaded(const Chunk::Pos &) noexcept; bool Queued(const Chunk::Pos &) noexcept; @@ -46,7 +47,8 @@ public: void Update(int dt); std::size_t ToLoad() const noexcept { return to_load.size(); } - void LoadOne(); + // returns true if the chunk was generated + bool LoadOne(); void LoadN(std::size_t n); private: