(EF_SECTOR_NAVIGATION, sector_navigation): New.

(empfile): Add it.
(dchr_ca): Use it.
(NAV_NONE): New.
This commit is contained in:
Ron Koenderink 2006-01-17 21:42:02 +00:00
parent 18902e45d0
commit 4f20f3dd9c
5 changed files with 15 additions and 1 deletions

View file

@ -189,6 +189,8 @@ struct empfile empfile[] = {
{EF_RESOURCES, "resources", NULL, symbol_ca, PTR_CACHE(resources, EFF_CFG)},
{EF_NATION_STATUS, "nation-status", NULL, symbol_ca,
PTR_CACHE(nation_status, EFF_CFG)},
{EF_SECTOR_NAVIGATION, "sector-navigation", NULL, symbol_ca,
PTR_CACHE(sector_navigation, EFF_CFG)},
/* Views */
{EF_COUNTRY, "country", NULL, cou_ca, UNMAPPED_CACHE(struct natstr, 0)},

View file

@ -167,7 +167,8 @@ struct castr dchr_ca[] = {
{NSC_INT, NSC_CONST, 0, offsetof(struct dchrstr, d_mnem), "mnem", EF_BAD},
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_prd), "prd", EF_PRODUCT},
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_mcst), "mcst", EF_BAD},
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_nav), "nav", EF_BAD /* FIXME */},
{NSC_INT, 0, 0, offsetof(struct dchrstr, d_nav), "nav",
EF_SECTOR_NAVIGATION},
{NSC_SITYPE(i_packing), 0, 0, offsetof(struct dchrstr, d_pkg), "pkg",
EF_PACKING},
{NSC_FLOAT, 0, 0, offsetof(struct dchrstr, d_ostr), "ostr", EF_BAD},
@ -781,3 +782,11 @@ struct symbol resources[] = {
{offsetof(struct sctstr, sct_uran), "uran"},
{0, NULL}
};
struct symbol sector_navigation[] = { /* for d_nav */
{NAV_NONE, "land"},
{NAVOK, "sea"},
{NAV_02, "harbor"},
{NAV_60, "bridge"},
{0, NULL}
};