naev 0.11.5
nlua_pilotoutfit.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "nlua.h"
7#include "pilot.h"
8
9#define PILOTOUTFIT_METATABLE "pilotoutfit"
11extern int pilotoutfit_modified;
12
13/*
14 * Library loading
15 */
16int nlua_loadPilotOutfit( nlua_env env );
17
18/*
19 * Outfit operations
20 */
21PilotOutfitSlot* lua_topilotpilotoutfit( lua_State *L, int ind );
22PilotOutfitSlot* luaL_checkpilotoutfit( lua_State *L, int ind );
23PilotOutfitSlot* luaL_validpilotoutfit( lua_State *L, int ind );
25int lua_ispilotoutfit( lua_State *L, int ind );
int nlua_loadPilotOutfit(nlua_env env)
Loads the pilot outfit library.
PilotOutfitSlot * luaL_validpilotoutfit(lua_State *L, int ind)
Makes sure the outfit is valid or raises a Lua error.
PilotOutfitSlot * luaL_checkpilotoutfit(lua_State *L, int ind)
Gets outfit at index or raises error if there is no outfit at index.
PilotOutfitSlot ** lua_pushpilotoutfit(lua_State *L, PilotOutfitSlot *po)
Pushes a pilot outfit on the stack.
int lua_ispilotoutfit(lua_State *L, int ind)
Checks to see if ind is a pilot outfit.
Stores an outfit the pilot has.
Definition pilot.h:108