mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
world.lua script
This commit is contained in:
parent
5d6c2b9b8e
commit
abc3e47feb
7 changed files with 68 additions and 2 deletions
|
|
@ -100,8 +100,10 @@ LevelScreen::LevelScreen(Engine* engine, Level* level)
|
|||
|
||||
LevelScreen::~LevelScreen() {
|
||||
std::cout << "-- writing world" << std::endl;
|
||||
controller->onWorldSave();
|
||||
auto world = level->getWorld();
|
||||
world->write(level.get());
|
||||
controller->onWorldQuit();
|
||||
}
|
||||
|
||||
void LevelScreen::updateHotkeys() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue