mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
lua console library
This commit is contained in:
parent
9dc3c40b69
commit
c2ea0d5326
12 changed files with 156 additions and 34 deletions
|
|
@ -20,7 +20,7 @@ Hud* scripting::hud = nullptr;
|
|||
|
||||
void scripting::on_frontend_init(Hud* hud) {
|
||||
scripting::hud = hud;
|
||||
scripting::state->openlib("hud", hudlib, 0);
|
||||
scripting::state->openlib("hud", hudlib);
|
||||
|
||||
for (auto& pack : scripting::engine->getContentPacks()) {
|
||||
state->emit_event(pack.id + ".hudopen", [&] (lua::LuaState* state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue