UFO: Alien Invasion
Loading...
Searching...
No Matches
save_installation.h
Go to the documentation of this file.
1
5
6
/*
7
Copyright (C) 2002-2025 UFO: Alien Invasion.
8
9
This program is free software; you can redistribute it and/or
10
modify it under the terms of the GNU General Public License
11
as published by the Free Software Foundation; either version 2
12
of the License, or (at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17
18
See the GNU General Public License for more details.
19
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, 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"
42
static
const
constListEntry_t
saveInstallationConstants
[] = {
43
{
SAVE_INSTALLATIONSTATUS_NAMESPACE
"::construction"
,
INSTALLATION_UNDER_CONSTRUCTION
},
44
{
SAVE_INSTALLATIONSTATUS_NAMESPACE
"::working"
,
INSTALLATION_WORKING
},
45
{
nullptr
, -1}
46
};
47
48
/*
49
DTD:
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_UNDER_CONSTRUCTION
Definition
cp_installation.h:39
INSTALLATION_WORKING
@ INSTALLATION_WORKING
Definition
cp_installation.h:40
saveInstallationConstants
static const constListEntry_t saveInstallationConstants[]
Definition
save_installation.h:42
SAVE_INSTALLATIONSTATUS_NAMESPACE
#define SAVE_INSTALLATIONSTATUS_NAMESPACE
Definition
save_installation.h:41
constListEntry_t
list of script aliases to register
Definition
scripts.h:231
src
client
cgame
campaign
save
save_installation.h
Generated on __DATE__ __TIME__ for UFO: Alien Invasion by
1.16.1