teleport.h
src/teleport.h · 592 B
From the archive rom24src.tar.gz
Download the archive « Back to the archive contents
/* constants and globals for teleport.c */
typedef struct room_list ROOM_LIST;
typedef struct keyword_list KEY_LIST;
extern const KEY_LIST destination[];
/* model for the table
{
{ "key word list", { errors: vnum1, vnum2 },
{ level, { vnum1, vnum 2 }},
{ ... ... ... },
},
{ next keyword....}
}
*/
#define MAX_ROOMS 5
#define MAX_LIST 10
struct room_list
{
sh_int level;
sh_int vnum[MAX_ROOMS];
};
struct keyword_list
{
char * word_list;
sh_int error[MAX_ROOMS];
ROOM_LIST rooms[MAX_LIST];
};