naev 0.10.4
nlua_outfit.h
1/*
2 * See Licensing and Copyright notice in naev.h
3 */
4#pragma once
5
6#include "nlua.h"
7#include "outfit.h"
8
9#define OUTFIT_METATABLE "outfit"
11/*
12 * Library loading
13 */
14int nlua_loadOutfit( nlua_env env );
15
16/*
17 * Outfit operations
18 */
19const Outfit* lua_tooutfit( lua_State *L, int ind );
20const Outfit* luaL_checkoutfit( lua_State *L, int ind );
21const Outfit* luaL_validoutfit( lua_State *L, int ind );
22const Outfit** lua_pushoutfit( lua_State *L, const Outfit* outfit );
23int lua_isoutfit( lua_State *L, int ind );
const Outfit * luaL_validoutfit(lua_State *L, int ind)
Makes sure the outfit is valid or raises a Lua error.
Definition: nlua_outfit.c:135
int nlua_loadOutfit(nlua_env env)
Loads the outfit library.
Definition: nlua_outfit.c:83
const Outfit * luaL_checkoutfit(lua_State *L, int ind)
Gets outfit at index or raises error if there is no outfit at index.
Definition: nlua_outfit.c:121
const Outfit ** lua_pushoutfit(lua_State *L, const Outfit *outfit)
Pushes a outfit on the stack.
Definition: nlua_outfit.c:160
int lua_isoutfit(lua_State *L, int ind)
Checks to see if ind is a outfit.
Definition: nlua_outfit.c:175
const Outfit * lua_tooutfit(lua_State *L, int ind)
Lua bindings to interact with outfits.
Definition: nlua_outfit.c:110
A ship outfit, depends radically on the type.
Definition: outfit.h:304