This commit is contained in:
MihailRis 2024-03-22 19:45:12 +03:00
parent 9df82ec0de
commit 15b11d52ad
2 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,7 @@ static int l_close_world(lua_State* L) {
scripting::engine->setScreen(nullptr);
// create and go to menu screen
scripting::engine->setScreen(std::make_shared<MenuScreen>(scripting::engine));
return 0;
}
static int l_delete_world(lua_State* L) {

View File

@ -32,6 +32,7 @@ Level* scripting::level = nullptr;
const Content* scripting::content = nullptr;
const ContentIndices* scripting::indices = nullptr;
BlocksController* scripting::blocks = nullptr;
LevelController* scripting::controller = nullptr;
Environment::Environment(int env) : env(env) {
}