UFO: Alien Invasion
Loading...
Searching...
No Matches
save_installation.h
Go to the documentation of this file.
1
5
6/*
7Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9This program is free software; you can redistribute it and/or
10modify it under the terms of the GNU General Public License
11as published by the Free Software Foundation; either version 2
12of the License, or (at your option) any later version.
13
14This program is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18See the GNU General Public License for more details.
19
20You should have received a copy of the GNU General Public License
21along with this program; if not, write to the Free Software
22Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23*/
24
25#pragma once
26
27#define SAVE_INSTALLATION_INSTALLATIONS "installations"
28#define SAVE_INSTALLATION_INSTALLATION "installation"
29#define SAVE_INSTALLATION_IDX "idx"
30#define SAVE_INSTALLATION_TEMPLATEID "templateid"
31#define SAVE_INSTALLATION_NAME "name"
32#define SAVE_INSTALLATION_POS "pos"
33#define SAVE_INSTALLATION_STATUS "status"
34#define SAVE_INSTALLATION_DAMAGE "damage"
35#define SAVE_INSTALLATION_ALIENINTEREST "alienInterest"
36#define SAVE_INSTALLATION_BUILDSTART "buildStart"
37
38#define SAVE_INSTALLATION_BATTERIES "batteries"
39#define SAVE_INSTALLATION_NUM "num"
40
41#define SAVE_INSTALLATIONSTATUS_NAMESPACE "saveInstallationStatus"
47
48/*
49DTD:
50
51<!ELEMENT installations installation*>
52<!ELEMENT installation pos batteries?>
53<!ATTLIST installation
54 idx CDATA #REQUIRED
55 templateid CDATA #REQUIRED
56 name CDATA #IMPLIED
57 status (construction,
58 working) #REQUIRED
59 damage CDATA '0'
60 alienInterest CDATA '0.0'
61 buildStart CDATA '0'
62>
63<!ELEMENT pos EMPTY>
64<!ATTLIST pos
65 x CDATA '0'
66 y CDATA '0'
67 z CDATA '0'
68>
69<!ELEMENT batteries weapon*>
70<!ATTLIST batteries
71 num CDATA '0'
72>
73
74**Note: weapon defined in save_bases.h
75
76*/
@ INSTALLATION_UNDER_CONSTRUCTION
@ INSTALLATION_WORKING
static const constListEntry_t saveInstallationConstants[]
#define SAVE_INSTALLATIONSTATUS_NAMESPACE
list of script aliases to register
Definition scripts.h:231