Merge branch 'master' of git://github.com/BTAxis/naev into testmission
[naev.git] / src / nlua_pilot.h
blob13edc5e18356e0484d12ec9e624c5ad68c1f9fd2
1 /*
2 * See Licensing and Copyright notice in naev.h
3 */
6 #ifndef NLUA_PILOT_H
7 # define NLUA_PILOT_H
10 #include "lua.h"
12 #include "pilot.h"
15 #define PILOT_METATABLE "pilot" /**< Pilot metatable identifier. */
18 /**
19 * @brief Lua Pilot wrapper.
21 typedef struct LuaPilot_s {
22 unsigned int pilot; /**< ID of the pilot. */
23 } LuaPilot; /**< Wrapper for a Pilot. */
26 /*
27 * Library loading
29 int nlua_loadPilot( lua_State *L, int readonly );
32 * Pilot operations
34 LuaPilot* lua_topilot( lua_State *L, int ind );
35 LuaPilot* luaL_checkpilot( lua_State *L, int ind );
36 LuaPilot* lua_pushpilot( lua_State *L, LuaPilot pilot );
37 int lua_ispilot( lua_State *L, int ind );
40 #endif /* NLUA_PILOT_H */