Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (27 sloc) 0.752 kB
/*
* See Licensing and Copyright notice in naev.h
*/
#ifndef NLUA_PILOT_H
# define NLUA_PILOT_H
#include <lua.h>
#include "pilot.h"
#define PILOT_METATABLE "pilot" /**< Pilot metatable identifier. */
/**
* @brief Lua Pilot wrapper.
*/
typedef struct LuaPilot_s {
unsigned int pilot; /**< ID of the pilot. */
} LuaPilot; /**< Wrapper for a Pilot. */
/*
* Library loading
*/
int nlua_loadPilot( lua_State *L, int readonly );
/*
* Pilot operations
*/
LuaPilot* lua_topilot( lua_State *L, int ind );
LuaPilot* luaL_checkpilot( lua_State *L, int ind );
LuaPilot* lua_pushpilot( lua_State *L, LuaPilot pilot );
Pilot* luaL_validpilot( lua_State *L, int ind );
int lua_ispilot( lua_State *L, int ind );
#endif /* NLUA_PILOT_H */
Jump to Line
Something went wrong with that request. Please try again.