]> git.pond.sub.org Git - empserver/blob - src/lib/global/file.c
(empfile): Member itemoffs is unused since file.c rev. 1.15; remove.
[empserver] / src / lib / global / file.c
1 /*
2  *  Empire - A multi-player, client/server Internet based war game.
3  *  Copyright (C) 1986-2005, Dave Pare, Jeff Bailey, Thomas Ruschak,
4  *                           Ken Stevens, Steve McClure
5  *
6  *  This program is free software; you can redistribute it and/or modify
7  *  it under the terms of the GNU General Public License as published by
8  *  the Free Software Foundation; either version 2 of the License, or
9  *  (at your option) any later version.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  *
20  *  ---
21  *
22  *  See the "LEGAL", "LICENSE", "CREDITS" and "README" files for all the
23  *  related information and legal notices. It is expected that any future
24  *  projects/authors will amend these files as needed.
25  *
26  *  ---
27  *
28  *  file.c: Empire game data file descriptions.
29  * 
30  *  Known contributors to this file:
31  *     
32  */
33
34 #include <stddef.h>
35 #include "misc.h"
36 #include "xy.h"
37 #include "loan.h"
38 #include "nsc.h"
39 #include "nuke.h"
40 #include "plane.h"
41 #include "ship.h"
42 #include "land.h"
43 #include "sect.h"
44 #include "trade.h"
45 #include "treaty.h"
46 #include "file.h"
47 #include "power.h"
48 #include "news.h"
49 #include "nat.h"
50 #include "lost.h"
51
52 #include "gamesdef.h"
53 #include "commodity.h"
54
55 struct empfile empfile[] = {
56     {"sect", "sector", EFF_XY | EFF_OWNER,
57      0, sizeof(struct sctstr), NULL, NULL, NULL,
58      -1, -1, 0, 0, NULL, 0, NULL},
59     {"ship", "ship", EFF_XY | EFF_OWNER | EFF_GROUP,
60      0, sizeof(struct shpstr), NULL, NULL, NULL,
61      -1, -1, 0, 0, NULL, 0, NULL},
62     {"plane", "plane", EFF_XY | EFF_OWNER | EFF_GROUP,
63      0, sizeof(struct plnstr), NULL, NULL, NULL,
64      -1, -1, 0, 0, NULL, 0, NULL},
65     {"land", "land", EFF_XY | EFF_OWNER | EFF_GROUP,
66      0, sizeof(struct lndstr), NULL, NULL, NULL,
67      -1, -1, 0, 0, NULL, 0, NULL},
68     {"nuke", "nuke", EFF_XY | EFF_OWNER,
69      0, sizeof(struct nukstr), NULL, NULL, NULL,
70      -1, -1, 0, 0, NULL, 0, NULL},
71     {"news", "news", 0,
72      0, sizeof(struct nwsstr), NULL, NULL, NULL,
73      -1, -1, 0, 0, NULL, 0, NULL},
74     {"treaty", "treaty", 0,
75      0, sizeof(struct trtstr), NULL, NULL, NULL,
76      -1, -1, 0, 0, NULL, 0, NULL},
77     {"trade", "trade", 0,
78      0, sizeof(struct trdstr), NULL, NULL, NULL,
79      -1, -1, 0, 0, NULL, 0, NULL},
80     {"pow", "power", 0,
81      0, sizeof(struct powstr), NULL, NULL, NULL,
82      -1, -1, 0, 0, NULL, 0, NULL},
83     {"nat", "nation", EFF_OWNER,
84      0, sizeof(struct natstr), NULL, NULL, NULL,
85      -1, -1, 0, 0, NULL, 0, NULL},
86     {"loan", "loan", 0,
87      0, sizeof(struct lonstr), NULL, NULL, NULL,
88      -1, -1, 0, 0, NULL, 0, NULL},
89     {"map", "map", 0,
90      0, DEF_WORLD_X * DEF_WORLD_Y / 2, NULL, NULL, NULL,
91      -1, -1, 0, 0, NULL, 0, NULL},
92     {"bmap", "bmap", 0,
93      0, DEF_WORLD_X * DEF_WORLD_Y / 2, NULL, NULL, NULL,
94      -1, -1, 0, 0, NULL, 0, NULL},
95     {"commodity", "commodity", 0,
96      0, sizeof(struct comstr), NULL, NULL, NULL,
97      -1, -1, 0, 0, NULL, 0, NULL},
98     {"lost", "lostitems", EFF_OWNER,
99      0, sizeof(struct loststr), NULL, NULL, NULL,
100      -1, -1, 0, 0, NULL, 0, NULL}
101 };