rename 'files' to 'io'

This commit is contained in:
MihailRis
2025-01-30 16:53:52 +03:00
parent e5d558d357
commit 1e22882284
45 changed files with 157 additions and 160 deletions
+3 -3
View File
@@ -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()) {