Lua: remove dgn_comp, use lua instead

This commit is contained in:
Pasi Kallinen
2019-07-14 10:07:11 +03:00
parent fd55d9118e
commit 9cd9280276
19 changed files with 578 additions and 5139 deletions

View File

@@ -18,22 +18,24 @@ struct couple {
};
struct tmpdungeon {
char name[24], protoname[24];
char *name, *protoname;
struct couple lev;
int flags, chance, levels, branches,
entry_lev; /* entry level for this dungeon */
char boneschar;
int align;
};
struct tmplevel {
char name[24];
char *name;
char *chainlvl;
struct couple lev;
int chance, rndlevs, chain, flags;
char boneschar;
};
struct tmpbranch {
char name[24]; /* destination dungeon name */
char *name; /* destination dungeon name */
struct couple lev;
int chain; /* index into tmplevel array (chained branch)*/
int type; /* branch type (see below) */

View File

@@ -1655,6 +1655,8 @@ E struct selectionvar *FDECL(l_selection_check, (lua_State *, int));
E int FDECL(l_selection_register, (lua_State *));
/* ### nhlua.c ### */
E lua_State * NDECL(nhl_init);
E boolean FDECL(nhl_loadlua, (lua_State *, const char *));
E boolean FDECL(load_lua, (const char *));
E void FDECL(nhl_error, (lua_State *, const char *));
E void FDECL(lcheck_param_table, (lua_State *));