12#define PILOT_METATABLE "pilot"
15#define luaL_optpilot( L, ind, def ) \
16 nluaL_optarg( L, ind, def, luaL_validpilot )
24typedef unsigned int LuaPilot;
LuaPilot lua_topilot(lua_State *L, int ind)
Lua bindings to interact with pilots.
LuaPilot * lua_pushpilot(lua_State *L, LuaPilot pilot)
Pushes a pilot on the stack.
Pilot * luaL_validpilot(lua_State *L, int ind)
Makes sure the pilot is valid or raises a Lua error.
int nlua_loadPilot(nlua_env env)
Loads the pilot library.
int lua_ispilot(lua_State *L, int ind)
Checks to see if ind is a pilot.
LuaPilot luaL_checkpilot(lua_State *L, int ind)
Gets pilot at index or raises error if there is no pilot at index.
The representation of an in-game pilot.