rename 'files' to 'io'
This commit is contained in:
+3
-3
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user