mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
Refactor, world.bin file, BinaryWriter, BinaryReader
This commit is contained in:
parent
9bc236b71a
commit
6cd775c27d
14 changed files with 378 additions and 126 deletions
|
|
@ -46,7 +46,7 @@ MenuScreen::MenuScreen(Engine* engine_) : Screen(engine_) {
|
|||
path folder = enginefs::get_worlds_folder()/path("world");
|
||||
World* world = new World("world", folder, 42, settings);
|
||||
|
||||
auto screen = new LevelScreen(engine, world->loadLevel(settings));
|
||||
auto screen = new LevelScreen(engine, world->load(settings));
|
||||
engine->setScreen(shared_ptr<Screen>(screen));
|
||||
});
|
||||
panel->add(shared_ptr<UINode>(button));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue