mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
lua: hud library
This commit is contained in:
parent
ffed4319da
commit
7e553efdec
14 changed files with 140 additions and 31 deletions
15
src/logic/scripting/api/libhud.h
Normal file
15
src/logic/scripting/api/libhud.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef LOGIC_SCRIPTING_API_LIBHUD_H_
|
||||
#define LOGIC_SCRIPTING_API_LIBHUD_H_
|
||||
|
||||
#include <lua.hpp>
|
||||
|
||||
extern int l_hud_open_inventory(lua_State* L);
|
||||
extern int l_hud_close_inventory(lua_State* L);
|
||||
|
||||
static const luaL_Reg hudlib [] = {
|
||||
{"open_inventory", l_hud_open_inventory},
|
||||
{"close_inventory", l_hud_close_inventory},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
#endif // LOGIC_SCRIPTING_API_LIBHUD_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue