Lua: nhcore script with function callbacks
Adds possible callbacks for "start_new_game", "restore_old_game", "moveloop_turn", and "game_exit" which when defined, will be called from core code at the appropriate time. Adds lua hooks for dump_fmtstr (only if DUMPLOG), dnum_name, u.moves, u.uhave_amulet, and u.depth.
This commit is contained in:
@@ -1657,6 +1657,9 @@ extern int l_obj_register(lua_State *);
|
||||
/* ### nhlua.c ### */
|
||||
|
||||
#if !defined(CROSSCOMPILE) || defined(CROSSCOMPILE_TARGET)
|
||||
extern void l_nhcore_init(void);
|
||||
extern void l_nhcore_done(void);
|
||||
extern void l_nhcore_call(int);
|
||||
extern lua_State * nhl_init(void);
|
||||
extern void nhl_done(lua_State *);
|
||||
extern boolean nhl_loadlua(lua_State *, const char *);
|
||||
|
||||
Reference in New Issue
Block a user