]> git.localhorst.tv Git - blank.git/blob - src/world/WorldSave.hpp
save and load world seed
[blank.git] / src / world / WorldSave.hpp
1 #ifndef BLANK_WORLD_WORLDSAVE_HPP_
2 #define BLANK_WORLD_WORLDSAVE_HPP_
3
4 #include "World.hpp"
5
6 #include <string>
7
8
9 namespace blank {
10
11 class WorldSave {
12
13 public:
14         explicit WorldSave(const std::string &path);
15
16 public:
17         bool Exists() const noexcept;
18
19         void Create(const World::Config &) const;
20         void Read(World::Config &) const;
21
22 private:
23         std::string root_path;
24         std::string conf_path;
25
26 };
27
28 }
29
30 #endif