add app.reset_content()

This commit is contained in:
MihailRis
2025-01-06 20:10:24 +03:00
parent 550f3c468f
commit e2bc168914
2 changed files with 7 additions and 0 deletions
+6
View File
@@ -35,6 +35,11 @@ static int l_load_content(lua::State* L) {
return 0;
}
static int l_reset_content(lua::State* L) {
engine->resetContent();
return 0;
}
/// @brief Creating new world
/// @param name Name world
/// @param seed Seed world
@@ -249,6 +254,7 @@ const luaL_Reg corelib[] = {
{"blank", lua::wrap<l_blank>},
{"get_version", lua::wrap<l_get_version>},
{"load_content", lua::wrap<l_load_content>},
{"reset_content", lua::wrap<l_reset_content>},
{"new_world", lua::wrap<l_new_world>},
{"open_world", lua::wrap<l_open_world>},
{"reopen_world", lua::wrap<l_reopen_world>},