world.lua script

This commit is contained in:
MihailRis
2024-01-26 18:37:10 +03:00
parent 5d6c2b9b8e
commit abc3e47feb
7 changed files with 68 additions and 2 deletions
+2
View File
@@ -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() {