1 /* 2 * See Licensing and Copyright notice in naev.h 3 */ 4 5 6 #ifndef NLUA_SYSTEM_H 7 # define NLUA_SYSTEM_H 8 9 10 #include <lua.h> 11 12 #include "space.h" 13 #include "nlua.h" 14 15 16 #define SYSTEM_METATABLE "system" /**< System metatable identifier. */ 17 18 19 /** 20 * @brief Lua StarSystem Wrapper. 21 */ 22 typedef int LuaSystem; 23 24 25 /* 26 * Load the system library. 27 */ 28 int nlua_loadSystem( nlua_env env ); 29 30 /* 31 * System operations. 32 */ 33 LuaSystem lua_tosystem( lua_State *L, int ind ); 34 LuaSystem luaL_checksystem( lua_State *L, int ind ); 35 LuaSystem* lua_pushsystem( lua_State *L, LuaSystem sys ); 36 StarSystem* luaL_validsystem( lua_State *L, int ind ); 37 int lua_issystem( lua_State *L, int ind ); 38 39 40 #endif /* NLUA_SYSTEM_H */ 41 42