17#include "nlua_shiplog.h"
28#include "nlua_camera.h"
29#include "nlua_faction.h"
32#include "nlua_music.h"
33#include "nlua_player.h"
34#include "nlua_system.h"
46int shiplog_loadShiplog( nlua_env env );
95 const char *idstr, *logname, *logtype;
98 idstr = luaL_checkstring(L,1);
99 logname = luaL_checkstring(L,2);
100 logtype = luaL_checkstring(L,3);
101 overwrite = lua_toboolean(L,4);
102 maxLen = luaL_optinteger(L,5,0);
120 const char *idstr = luaL_checkstring(L, 1);
121 const char *msg = luaL_checkstring(L, 2);
123 lua_pushboolean(L, !ret);
Provides macros to work with dynamic arrays.
Header file with generic functions and naev-specifics.
int nlua_loadShiplog(nlua_env env)
Loads the mission Lua library.
static int shiplog_appendLog(lua_State *L)
Appends to the shiplog.
static const luaL_Reg shiplog_methods[]
static int shiplog_createLog(lua_State *L)
Bindings for adding log entries to the ship log.
int shiplog_append(const char *idstr, const char *msg)
Appends to the log file.
int shiplog_create(const char *idstr, const char *logname, const char *type, int overwrite, int maxLen)
Creates a new log with given title of given type.