mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
rename 'files' to 'io'
This commit is contained in:
parent
e5d558d357
commit
1e22882284
45 changed files with 157 additions and 160 deletions
|
|
@ -61,7 +61,7 @@ void World::writeResources(const Content& content) {
|
|||
}
|
||||
}
|
||||
}
|
||||
files::write_json(wfile->getResourcesFile(), root);
|
||||
io::write_json(wfile->getResourcesFile(), root);
|
||||
}
|
||||
|
||||
void World::write(Level* level) {
|
||||
|
|
@ -70,7 +70,7 @@ void World::write(Level* level) {
|
|||
wfile->write(this, &content);
|
||||
|
||||
auto playerFile = level->players->serialize();
|
||||
files::write_json(wfile->getPlayerFile(), playerFile);
|
||||
io::write_json(wfile->getPlayerFile(), playerFile);
|
||||
|
||||
writeResources(content);
|
||||
}
|
||||
|
|
@ -134,7 +134,7 @@ std::unique_ptr<Level> World::load(
|
|||
logger.warning() << "player.json does not exists";
|
||||
level->players->create();
|
||||
} else {
|
||||
auto playerRoot = files::read_json(file);
|
||||
auto playerRoot = io::read_json(file);
|
||||
level->players->deserialize(playerRoot);
|
||||
|
||||
if (!playerRoot["players"].empty()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue