X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fio%2FWorldSave.hpp;h=1796257fe748d62ecfbf88f2bb0e94c5e13c3abf;hb=38a4cffc0b6aa58e49d24c06aad7bee14cb6515d;hp=4095016a10c442df04ac19fcc078e7a6552ffee8;hpb=ede25c0a2f59e21521d1cd962e6ea9d78169ca12;p=blank.git diff --git a/src/io/WorldSave.hpp b/src/io/WorldSave.hpp index 4095016..1796257 100644 --- a/src/io/WorldSave.hpp +++ b/src/io/WorldSave.hpp @@ -2,6 +2,7 @@ #define BLANK_IO_WORLDSAVE_HPP_ #include "../world/Chunk.hpp" +#include "../world/Generator.hpp" #include "../world/World.hpp" #include @@ -20,6 +21,8 @@ public: bool Exists() const noexcept; void Read(World::Config &) const; void Write(const World::Config &) const; + void Read(Generator::Config &) const; + void Write(const Generator::Config &) const; // single chunk bool Exists(const Chunk::Pos &) const noexcept; @@ -30,7 +33,8 @@ public: private: std::string root_path; - std::string conf_path; + std::string world_conf_path; + std::string gen_conf_path; std::string chunk_path; std::size_t chunk_bufsiz; std::unique_ptr chunk_buf;