21 lines
437 B
C
21 lines
437 B
C
#pragma once
|
|
#include "lua.h"
|
|
#include "pilot.h"
|
|
|
|
#define PILOT_METATABLE "Pilot" /**< Pilot metatable identifier. */
|
|
|
|
/**
|
|
* @brief Lua wrapper for pilots.
|
|
*/
|
|
typedef struct LuaPilot_s {
|
|
unsigned int pilot;
|
|
} LuaPilot;
|
|
|
|
/* Library loading. */
|
|
int lua_loadPilot(lua_State* L, int readonly);
|
|
|
|
LuaPilot* lua_topilot(lua_State* L, int ind);
|
|
LuaPilot* lua_pushpilot(lua_State* L, LuaPilot pilot);
|
|
int lua_ispilot(lua_State* L, int ind);
|
|
|