mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
world.lua script
This commit is contained in:
parent
5d6c2b9b8e
commit
abc3e47feb
7 changed files with 68 additions and 2 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue