mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add app.load_content
This commit is contained in:
parent
ab24187b49
commit
d65da966d2
3 changed files with 17 additions and 1 deletions
|
|
@ -30,6 +30,11 @@ static int l_get_version(lua::State* L) {
|
|||
);
|
||||
}
|
||||
|
||||
static int l_load_content(lua::State* L) {
|
||||
engine->loadContent();
|
||||
return 0;
|
||||
}
|
||||
|
||||
/// @brief Creating new world
|
||||
/// @param name Name world
|
||||
/// @param seed Seed world
|
||||
|
|
@ -243,6 +248,7 @@ static int l_blank(lua::State*) {
|
|||
const luaL_Reg corelib[] = {
|
||||
{"blank", lua::wrap<l_blank>},
|
||||
{"get_version", lua::wrap<l_get_version>},
|
||||
{"load_content", lua::wrap<l_load_content>},
|
||||
{"new_world", lua::wrap<l_new_world>},
|
||||
{"open_world", lua::wrap<l_open_world>},
|
||||
{"reopen_world", lua::wrap<l_reopen_world>},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue