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
+8 -1
View File
@@ -17,7 +17,6 @@ LevelController::LevelController(EngineSettings& settings, Level* level)
}
LevelController::~LevelController() {
scripting::on_world_quit();
}
void LevelController::update(float delta, bool input, bool pause) {
@@ -26,3 +25,11 @@ void LevelController::update(float delta, bool input, bool pause) {
chunks->update(settings.chunks.loadSpeed);
blocks->update(delta);
}
void LevelController::onWorldSave() {
scripting::on_world_save();
}
void LevelController::onWorldQuit() {
scripting::on_world_quit();
}