]> git.localhorst.tv Git - blank.git/blobdiff - src/world/ChunkLoader.hpp
configurable asset and save path
[blank.git] / src / world / ChunkLoader.hpp
index c9fb8aa2f574e1721ef568ce2be95604f31ff2b0..6a8c2c19ac30d2143d42f85f01512d68c63af531 100644 (file)
@@ -39,6 +39,10 @@ public:
        void Rebase(const Chunk::Pos &);
        void Update(int dt);
 
+       std::size_t ToLoad() const noexcept { return to_generate.size(); }
+       void LoadOne();
+       void LoadN(std::size_t n);
+
 private:
        Chunk &Generate(const Chunk::Pos &pos);
        // link given chunk to all loaded neighbors