]> git.pond.sub.org Git - empserver/blob - src/lib/global/file.c
Cleanup #includes of (mostly a long time) unused header files.
[empserver] / src / lib / global / file.c
1 /*
2  *  Empire - A multi-player, client/server Internet based war game.
3  *  Copyright (C) 1986-2004, 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  *  fileglb.c: Empire selection global structures.
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", EMPDIR "/data/sector", EFF_COM | EFF_XY | EFF_OWNER,
57      0, sizeof(struct sctstr), 0, 0, 0, offsetof(struct sctstr, sct_item),
58      -1, -1, 0, 0, 0, 0, 0},
59     {"ship", EMPDIR "/data/ship", EFF_COM | EFF_XY | EFF_OWNER | EFF_GROUP,
60      0, sizeof(struct shpstr), 0, 0, 0, offsetof(struct shpstr, shp_item),
61      -1, -1, 0, 0, 0, 0, 0},
62     {"plane", EMPDIR "/data/plane", EFF_XY | EFF_OWNER | EFF_GROUP,
63      0, sizeof(struct plnstr), 0, 0, 0, 0,
64      -1, -1, 0, 0, 0, 0, 0},
65     {"land", EMPDIR "/data/land", EFF_COM | EFF_XY | EFF_OWNER | EFF_GROUP,
66      0, sizeof(struct lndstr), 0, 0, 0, offsetof(struct lndstr, lnd_item),
67      -1, -1, 0, 0, 0, 0, 0},
68     {"nuke", EMPDIR "/data/nuke", EFF_XY | EFF_OWNER,
69      0, sizeof(struct nukstr), 0, 0, 0, 0,
70      -1, -1, 0, 0, 0, 0, 0},
71     {"news", EMPDIR "/data/news", 0,
72      0, sizeof(struct nwsstr), 0, 0, 0, 0,
73      -1, -1, 0, 0, 0, 0, 0},
74     {"treaty", EMPDIR "/data/treaty", 0,
75      0, sizeof(struct trtstr), 0, 0, 0, 0,
76      -1, -1, 0, 0, 0, 0, 0},
77     {"trade", EMPDIR "/data/trade", 0,
78      0, sizeof(struct trdstr), 0, 0, 0, 0,
79      -1, -1, 0, 0, 0, 0, 0},
80     {"pow", EMPDIR "/data/power", 0,
81      0, sizeof(struct powstr), 0, 0, 0, 0,
82      -1, -1, 0, 0, 0, 0, 0},
83     {"nat", EMPDIR "/data/nation", 0,
84      0, sizeof(struct natstr), 0, 0, 0, 0,
85      -1, -1, 0, 0, 0, 0, 0},
86     {"loan", EMPDIR "/data/loan", 0,
87      0, sizeof(struct lonstr), 0, 0, 0, 0,
88      -1, -1, 0, 0, 0, 0, 0},
89     {"map", EMPDIR "/data/map", 0,
90      0, DEF_WORLD_X * DEF_WORLD_Y / 2, 0, 0, 0, 0,
91      -1, -1, 0, 0, 0, 0, 0},
92     {"bmap", EMPDIR "/data/bmap", 0,
93      0, DEF_WORLD_X * DEF_WORLD_Y / 2, 0, 0, 0, 0,
94      -1, -1, 0, 0, 0, 0, 0},
95     {"commodity", EMPDIR "/data/commodity", 0,
96      0, sizeof(struct comstr), 0, 0, 0, 0,
97      -1, -1, 0, 0, 0, 0, 0},
98     {"lost", EMPDIR "/data/lostitems", 0, 0,
99      sizeof(struct loststr), 0, 0, 0, 0,
100      -1, -1, 0, 0, 0, 0, 0}
101 };