mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
New world and player files format
This commit is contained in:
parent
b62b7bf2bb
commit
2f9244c17c
6 changed files with 168 additions and 79 deletions
|
|
@ -39,7 +39,14 @@ class WorldFiles {
|
|||
std::filesystem::path getRegionFile(int x, int y) const;
|
||||
std::filesystem::path getPlayerFile() const;
|
||||
std::filesystem::path getWorldFile() const;
|
||||
std::filesystem::path getBlockIndicesFile() const;
|
||||
std::filesystem::path getIndicesFile() const;
|
||||
|
||||
// TODO: remove in 0.16
|
||||
std::filesystem::path getOldPlayerFile() const;
|
||||
std::filesystem::path getOldWorldFile() const;
|
||||
bool readOldWorldInfo(World* world);
|
||||
bool readOldPlayer(Player* player);
|
||||
// --------------------
|
||||
public:
|
||||
std::unordered_map<glm::ivec2, WorldRegion> regions;
|
||||
std::filesystem::path directory;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue