naev 0.12.6
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 \
10 "pilotoutfit"
11
12extern int pilotoutfit_modified;
13
14/*
15 * Library loading
16 */
17int nlua_loadPilotOutfit( nlua_env env );
18
19/*
20 * Outfit operations
21 */
22PilotOutfitSlot *lua_topilotpilotoutfit( lua_State *L, int ind );
23PilotOutfitSlot *luaL_checkpilotoutfit( lua_State *L, int ind );
24PilotOutfitSlot *luaL_validpilotoutfit( lua_State *L, int ind );
26int 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:145