Move realms from the nation file into a new realms file:
(boundstr, realmstr): Rename, new members ef_type, r_cnum, r_uid, r_realm, r_timestamp. (natstr): Remove member nat_b[]. (EF_REALM, realm_ca): New. (empfile): Add it. (ef_open_srv, ef_close_srv, main): Deal with new file. (getrealm, putrealm): New. (add, new, real, list_realm, sarg_getrange): Use them.
This commit is contained in:
parent
04a8b84592
commit
45adbdb00e
11 changed files with 94 additions and 34 deletions
|
@ -114,6 +114,7 @@ enum {
|
|||
EF_BMAP,
|
||||
EF_COMM,
|
||||
EF_LOST,
|
||||
EF_REALM,
|
||||
/* Static game data (configuration) */
|
||||
EF_SECTOR_CHR,
|
||||
EF_SHIP_CHR,
|
||||
|
@ -147,7 +148,7 @@ enum {
|
|||
EF_MAX
|
||||
};
|
||||
|
||||
#define EF_IS_GAME_STATE(type) (EF_SECTOR <= (type) && (type) <= EF_LOST)
|
||||
#define EF_IS_GAME_STATE(type) (EF_SECTOR <= (type) && (type) <= EF_REALM)
|
||||
|
||||
extern struct castr *ef_cadef(int);
|
||||
extern int ef_read(int, int, void *);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue