-
Notifications
You must be signed in to change notification settings - Fork 14
/
SimCity2000.grammar
257 lines (257 loc) · 13.1 KB
/
SimCity2000.grammar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<?xml version="1.0" encoding="UTF-8"?>
<ufwb version="1.8">
<grammar name="SimCity 2000 Saved City" start="id:21" author="Kelvin Chung" email="[email protected]" fileextension=".sc2">
<description>Saved Cities for SimCity 2000</description>
<structure name="Saved City" id="21" encoding="ISO_8859-1:1987" endian="big" signed="no">
<structref name="SimCity FORM Chunk" id="999" structure="id:992"/>
</structure>
<structure name="IFF Chunk" id="23" alignment="1" encoding="ISO_8859-1:1987" endian="big" signed="no">
<string name="Type ID" id="25" fillcolor="0432FF" type="fixed-length" length="4"/>
<number name="Size" id="26" strokecolor="72FA78" fillcolor="FF9300" type="integer" length="4"/>
<structure name="Chunk Data" id="983" length="Size"/>
</structure>
<structure name="FORM Chunk" id="985" extends="id:23">
<string name="Type ID" mustmatch="yes" id="987" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="FORM"/>
</fixedvalues>
</string>
<number name="Size" id="988" type="integer"/>
<structure name="Chunk Data" id="989">
<string name="Record Type" id="991" fillcolor="0096FF" type="fixed-length" length="4"/>
</structure>
</structure>
<structure name="SimCity FORM Chunk" id="992" extends="id:985">
<structure name="Chunk Data" id="996">
<string name="Record Type" mustmatch="yes" id="997" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="SCDH"/>
</fixedvalues>
</string>
<structref name="CNAM Chunk" id="1059" repeatmin="0" structure="id:1000"/>
<structref name="MISC Chunk" id="1060" structure="id:1015"/>
<structref name="ALTM Chunk" id="1073" structure="id:1017"/>
<structref name="XTER Chunk" id="1074" structure="id:1019"/>
<structref name="XBLD Chunk" id="1075" structure="id:1021"/>
<structref name="XZON Chunk" id="1088" structure="id:1023"/>
<structref name="XUND Chunk" id="1089" structure="id:1025"/>
<structref name="XTXT Chunk" id="1090" structure="id:1027"/>
<structref name="XLAB Chunk" id="1143" structure="id:1029"/>
<structref name="XMIC Chunk" id="1144" structure="id:1031"/>
<structref name="XTHG Chunk" id="1145" structure="id:1033"/>
<structref name="XBIT Chunk" id="1146" structure="id:1035"/>
<structref name="XTRF Chunk" id="1147" structure="id:1037"/>
<structref name="XPLT Chunk" id="1148" structure="id:1039"/>
<structref name="XVAL Chunk" id="1149" structure="id:1043"/>
<structref name="XCRM Chunk" id="1150" structure="id:1041"/>
<structref name="XPLC Chunk" id="1151" structure="id:1045"/>
<structref name="XFIR Chunk" id="1152" structure="id:1047"/>
<structref name="XPOP Chunk" id="1153" structure="id:1049"/>
<structref name="XROG Chunk" id="1154" structure="id:1051"/>
<structref name="XGRP Chunk" id="1155" structure="id:1053"/>
</structure>
</structure>
<structure name="CNAM Chunk" id="1000" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1002" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="CNAM"/>
</fixedvalues>
</string>
<number name="Size" id="1003" type="integer"/>
<structure name="Chunk Data" id="1004">
<string name="City Name" id="1178" fillcolor="FEFC78" type="pascal"/>
</structure>
</structure>
<structure name="MISC Chunk" id="1015" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1055" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="MISC"/>
</fixedvalues>
</string>
<number name="Size" id="1056" type="integer"/>
</structure>
<structure name="ALTM Chunk" id="1017" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1061" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="ALTM"/>
</fixedvalues>
</string>
<number name="Size" id="1062" type="integer"/>
<structure name="Chunk Data" id="1063">
<structure name="Altitude Map Row" id="1156" repeatmin="128" repeatmax="128">
<structure name="Altitude Map Cell" id="1158" repeatmin="128" repeatmax="128">
<binary name="<unknown>" id="1162" length="8" lengthunit="bit"/>
<number name="<water covered?>" id="1163" type="integer" length="1" lengthunit="bit"/>
<binary name="<unknown-2>" id="1164" length="2" lengthunit="bit"/>
<number name="Altitude Data" id="1160" type="integer" length="5" lengthunit="bit"/>
</structure>
</structure>
</structure>
</structure>
<structure name="XTER Chunk" id="1019" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1065" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XTER"/>
</fixedvalues>
</string>
<number name="Size" id="1066" type="integer"/>
</structure>
<structure name="XBLD Chunk" id="1021" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1069" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XBLD"/>
</fixedvalues>
</string>
<number name="Size" id="1070" type="integer"/>
</structure>
<structure name="XZON Chunk" id="1023" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1076" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XZON"/>
</fixedvalues>
</string>
<number name="Size" id="1077" type="integer"/>
</structure>
<structure name="XUND Chunk" id="1025" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1080" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XUND"/>
</fixedvalues>
</string>
<number name="Size" id="1081" type="integer"/>
</structure>
<structure name="XTXT Chunk" id="1027" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1084" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XTXT"/>
</fixedvalues>
</string>
<number name="Size" id="1085" type="integer"/>
</structure>
<structure name="XLAB Chunk" id="1029" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1091" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XLAB"/>
</fixedvalues>
</string>
<number name="Size" id="1092" type="integer"/>
</structure>
<structure name="XMIC Chunk" id="1031" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1095" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XMIC"/>
</fixedvalues>
</string>
<number name="Size" id="1096" type="integer"/>
</structure>
<structure name="XTHG Chunk" id="1033" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1099" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XTHG"/>
</fixedvalues>
</string>
<number name="Size" id="1100" type="integer"/>
</structure>
<structure name="XBIT Chunk" id="1035" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1103" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XBIT"/>
</fixedvalues>
</string>
<number name="Size" id="1104" type="integer"/>
</structure>
<structure name="XTRF Chunk" id="1037" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1107" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XTRF"/>
</fixedvalues>
</string>
<number name="Size" id="1108" type="integer"/>
</structure>
<structure name="XPLT Chunk" id="1039" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1111" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XPLT"/>
</fixedvalues>
</string>
<number name="Size" id="1112" type="integer"/>
</structure>
<structure name="XVAL Chunk" id="1043" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1115" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XVAL"/>
</fixedvalues>
</string>
<number name="Size" id="1116" type="integer"/>
</structure>
<structure name="XCRM Chunk" id="1041" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1119" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XCRM"/>
</fixedvalues>
</string>
<number name="Size" id="1120" type="integer"/>
</structure>
<structure name="XPLC Chunk" id="1045" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1123" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XPLC"/>
</fixedvalues>
</string>
<number name="Size" id="1124" type="integer"/>
</structure>
<structure name="XFIR Chunk" id="1047" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1127" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XFIR"/>
</fixedvalues>
</string>
<number name="Size" id="1128" type="integer"/>
</structure>
<structure name="XPOP Chunk" id="1049" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1131" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XPOP"/>
</fixedvalues>
</string>
<number name="Size" id="1132" type="integer"/>
</structure>
<structure name="XROG Chunk" id="1051" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1135" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XROG"/>
</fixedvalues>
</string>
<number name="Size" id="1136" type="integer"/>
</structure>
<structure name="XGRP Chunk" id="1053" extends="id:23">
<string name="Type ID" mustmatch="yes" id="1139" type="fixed-length">
<fixedvalues>
<fixedvalue name="Type ID" value="XGRP"/>
</fixedvalues>
</string>
<number name="Size" id="1140" type="integer"/>
</structure>
<structure name="Run-Length Encoding Chunk" id="1165" encoding="ISO_8859-1:1987" endian="big" signed="no">
<number name="Is Compressed" id="1167" type="integer" length="1" lengthunit="bit"/>
</structure>
<structure name="Run-Length Encoding Uncompressed Chunk" id="1168" extends="id:1165">
<number name="Is Compressed" mustmatch="yes" id="1170" type="integer">
<fixedvalues>
<fixedvalue name="Compressed" value="0"/>
</fixedvalues>
</number>
<number name="Size" id="1176" type="integer" length="1" minval="1"/>
<binary name="<new binary>" id="1177" length="Size"/>
</structure>
<structure name="Run-Length Encoding Compressed Chunk" id="1171" extends="id:1165">
<number name="Is Compressed" mustmatch="yes" id="1173" type="integer">
<fixedvalues>
<fixedvalue name="Compressed" value="1"/>
</fixedvalues>
</number>
<number name="Length" id="1174" type="integer" length="7" lengthunit="bit" minval="1"/>
<binary name="Data" id="1175" length="1"/>
</structure>
</grammar>
</ufwb>