Fetching contributors…
Cannot retrieve contributors at this time
41 lines (25 sloc) 690 Bytes
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef NLUA_SYSTEM_H
# define NLUA_SYSTEM_H
#include <lua.h>
#include "space.h"
#define SYSTEM_METATABLE "system" /**< System metatable identifier. */
/**
* @brief Lua StarSystem Wrapper.
*/
typedef int LuaSystem;
/*
* Load the system library.
*/
int nlua_loadSystem( lua_State *L, int readonly );
/*
* System operations.
*/
LuaSystem lua_tosystem( lua_State *L, int ind );
LuaSystem luaL_checksystem( lua_State *L, int ind );
LuaSystem* lua_pushsystem( lua_State *L, LuaSystem sys );
StarSystem* luaL_validsystem( lua_State *L, int ind );
int lua_issystem( lua_State *L, int ind );
#endif /* NLUA_SYSTEM_H */