mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 20:11:50 +00:00
inventory.bind_block, unbind_block
This commit is contained in:
parent
8162def157
commit
98a96a9c1b
10 changed files with 190 additions and 122 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef LOGIC_SCRIPTING_API_LIBHUD_H_
|
||||
#define LOGIC_SCRIPTING_API_LIBHUD_H_
|
||||
|
||||
#include <lua.hpp>
|
||||
#include "lua_commons.h"
|
||||
|
||||
extern int l_hud_open_inventory(lua_State* L);
|
||||
extern int l_hud_close_inventory(lua_State* L);
|
||||
|
|
@ -10,11 +10,11 @@ extern int l_hud_open_permanent(lua_State* L);
|
|||
extern int l_hud_close(lua_State* L);
|
||||
|
||||
static const luaL_Reg hudlib [] = {
|
||||
{"open_inventory", l_hud_open_inventory},
|
||||
{"close_inventory", l_hud_close_inventory},
|
||||
{"open_block", l_hud_open_block},
|
||||
{"open_permanent", l_hud_open_permanent},
|
||||
{"close", l_hud_close},
|
||||
{"open_inventory", lua_wrap_errors<l_hud_open_inventory>},
|
||||
{"close_inventory", lua_wrap_errors<l_hud_close_inventory>},
|
||||
{"open_block", lua_wrap_errors<l_hud_open_block>},
|
||||
{"open_permanent", lua_wrap_errors<l_hud_open_permanent>},
|
||||
{"close", lua_wrap_errors<l_hud_close>},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue