mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
refactor: complete 'lua' namespace use
This commit is contained in:
parent
90bc86408b
commit
913e5983b1
26 changed files with 370 additions and 359 deletions
|
|
@ -22,7 +22,7 @@ void scripting::on_frontend_init(Hud* hud) {
|
|||
|
||||
for (auto& pack : engine->getContentPacks()) {
|
||||
lua::emit_event(lua::get_main_thread(), pack.id + ".hudopen",
|
||||
[&] (lua_State* L) {
|
||||
[&] (lua::State* L) {
|
||||
return lua::pushinteger(L, hud->getPlayer()->getId());
|
||||
});
|
||||
}
|
||||
|
|
@ -31,7 +31,7 @@ void scripting::on_frontend_init(Hud* hud) {
|
|||
void scripting::on_frontend_close() {
|
||||
for (auto& pack : engine->getContentPacks()) {
|
||||
lua::emit_event(lua::get_main_thread(), pack.id + ".hudclose",
|
||||
[&] (lua_State* L) {
|
||||
[&] (lua::State* L) {
|
||||
return lua::pushinteger(L, hud->getPlayer()->getId());
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue