mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
feat: world files resources file loading
This commit is contained in:
parent
a013e7eefd
commit
9623f35862
5 changed files with 48 additions and 8 deletions
|
|
@ -116,6 +116,7 @@ std::unique_ptr<Level> World::load(
|
|||
if (!wfile->readWorldInfo(world.get())) {
|
||||
throw world_load_error("could not to find world.json");
|
||||
}
|
||||
wfile->readResourcesData(content);
|
||||
|
||||
auto level = std::make_unique<Level>(std::move(world), content, settings);
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue