-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathdf.abstract_building.xml
300 lines (263 loc) · 14.3 KB
/
df.abstract_building.xml
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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
<data-definition>
<bitfield-type type-name='location_info_flag' base-type='uint32_t'> bay12: LOCATION_INFO_FLAG_*
<flag-bit name='goblets'/>
<flag-bit name='instruments'/>
<flag-bit name='paper'/>
<flag-bit name='entity_recognized'/>
<flag-bit name='splints'/>
<flag-bit name='thread'/>
<flag-bit name='cloth'/>
<flag-bit name='crutches'/>
<flag-bit name='powder'/>
<flag-bit name='buckets'/>
<flag-bit name='soap'/>
</bitfield-type>
<struct-type type-name='abstract_building_contents' original-name='location_infost'>
<bitfield name='need_more' type-name='location_info_flag' base-type='uint32_t'/>
<enum name='profession' type-name='profession' since='v0.47.01'/>
<int32_t name='desired_goblets'/>
<int32_t name='desired_instruments'/>
<int32_t name='desired_paper'/>
<int32_t name='desired_splints'/>
<int32_t name='desired_thread' comment='times 15000'/>
<int32_t name='desired_cloth' comment='times 10000'/>
<int32_t name='desired_crutches'/>
<int32_t name='desired_powder' comment='times 150'/>
<int32_t name='desired_buckets'/>
<int32_t name='desired_soap' comment='times 150'/>
<int32_t name='desired_copies' init-value='2'/>
<int32_t name='location_tier'/>
<int32_t name='location_value'/>
the following is not saved:
<int32_t name='count_goblets'/>
<int32_t name='count_instruments'/>
<int32_t name='count_paper'/>
<int32_t name='count_splints'/>
<int32_t name='count_thread'/>
<int32_t name='count_cloth'/>
<int32_t name='count_crutches'/>
<int32_t name='count_powder'/>
<int32_t name='count_buckets'/>
<int32_t name='count_soap'/>
<int32_t name='update_timer' init-value='100'/>
<int32_t name='update_count'/>
<stl-vector name='building_ids' type-name='int32_t' ref-target='building'/>
</struct-type>
<enum-type type-name='location_death_type' base-type='int32_t'> bay12: LocationDeathType
<enum-item name='NONE' value='-1'/>
<enum-item name='NATURAL'/>
<enum-item name='STARVATION'/>
<enum-item name='FAILED_DEFENDER'/>
<enum-item name='SUCCESSFUL_DEFENDER'/>
<enum-item name='FAILED_INVADER'/>
<enum-item name='SUCCESSFUL_INVADER'/>
<enum-item name='MURDER'/>
<enum-item name='NATURAL_SCATTERED'/>
<enum-item name='SITE_RAMPAGE'/>
</enum-type>
<struct-type type-name='location_death_batchst'>
<int32_t name="num"/>
<int32_t name="race" ref-target='creature_raw'/>
<int32_t name="epid" ref-target='entity_population'/>
<int32_t name="breed_id" ref-target='breed'/>
<int32_t name='first_year_used'/>
<int32_t name='last_year_used'/>
<int32_t name="body_count"/>
<enum name="death_type" type-name='location_death_type'/>
</struct-type>
<struct-type type-name='location_deathst'>
<stl-vector name='batch' pointer-type='location_death_batchst' since='v0.34.01'/>
<stl-vector name='hfid' type-name='int32_t' ref-target='historical_figure' since='v0.34.01' comment="killed by rampaging monster, murder, execution, old age seen. Note that most HFs seem to have been culled"/>
</struct-type>
-- Unused: struct blueprintst
-- Unused: struct gbp_element_groupst
-- Unused: struct general_blueprintst
<struct-type type-name='architectural_infost'>
<stl-vector name='hfig' ref-target='historical_figure' type-name='int32_t'/>
<int32_t name='architect_hf' ref-target='historical_figure'/>
<stl-vector name='architectural_elements'><enum type-name='architectural_element' base-type='int16_t'/></stl-vector>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index' comment='just a guess'/>
<int32_t name='mat_index'/>
</struct-type>
<struct-type type-name='abstract_building_hf_linkst'>
<enum name='type' type-name='histfig_hf_link_type' base-type='int16_t'/>
<int32_t name='histfig_id' ref-target='historical_figure'/>
</struct-type>
<enum-type type-name='abstract_building_order_type' base-type='int32_t'> bay12: AbstractBuildingOrderType
<enum-item name='NONE' value='-1'/>
<enum-item name='COPY_ITEM'/>
</enum-type>
<struct-type type-name='scribejob' original-name='abstract_building_orderst'>
<int32_t name='id'/>
<enum name='type' type-name='abstract_building_order_type'/>
<int32_t name='target_id' comment='depends on type, currently item ID'/>
<int32_t name='relevant_id' comment='depends on type, currently written content ID'/>
<int32_t name='unit_id' ref-target='unit'/>
<int32_t name='activity_entry_id' ref-target='activity_entry'/>
<int32_t name='activity_event_id' ref-target='activity_event'/>
</struct-type>
<struct-type type-name='location_scribe_jobs' original-name='abstract_building_order_informationst'>
<stl-vector name='scribejobs' pointer-type='scribejob'/>
<int32_t name='next_id'/>
<int32_t name='next_check_year'/>
<int32_t name='next_check_season_tick'/>
</struct-type>
<struct-type type-name='ab_reputation_infost'>
<static-array name='reputation' type-name='int32_t' count='8' index-enum='abstract_building_reputation_type'/>
</struct-type>
<class-type type-name='abstract_building' original-name='abstract_buildingst' key-field='id'>
<int32_t name='id'/>
<code-helper name='find-instance'>
(find-by-id $(find-instance $world_site $$).buildings $id $)
</code-helper>
<stl-vector name='inhabitants' pointer-type='abstract_building_hf_linkst'/>
<df-flagarray name='flags' index-enum='abstract_building_flags'/>
<pointer name='archinfo' type-name='architectural_infost'/>
<stl-vector name='item_id' type-name='int32_t' ref-target='item'/>
<int32_t name='parent_building_id' ref-target='abstract_building' comment='Tombs use this to hold which catacomb they are part of.'/>
<stl-vector name='child_building_ids' type-name='int32_t' ref-target='abstract_building' comment='Used by catacombs to hold their tombs'/>
<int32_t name='site_owner_id' ref-target='historical_entity' comment='entity that constructed the building'/>
<pointer name='scribeinfo' since='v0.42.01' type-name='location_scribe_jobs'/>
<pointer name='review_info' since='v0.42.01' type-name='site_reputation_info'/>
<pointer name='reputation_info' since='v0.42.01' type-name='ab_reputation_infost'/>
<int32_t name='site_id' ref-target='world_site'
comment='not initialized/saved/loaded, assumed member of base class'/>
<compound name='pos' type-name='coord2d' since='v0.42.01'/>
<stl-vector name='occupations' pointer-type='occupation' since='v0.42.01'/>
<virtual-methods>
<vmethod ret-type='abstract_building_type' name='getType'/>
<vmethod name='getDisplayTile' comment='on navigation minimap'>
<pointer type-name='uint8_t' name='tile'/>
<pointer type-name='int16_t' name='fg'/>
<pointer type-name='int16_t' name='bg'/>
<pointer type-name='int16_t' name='bright'/>
</vmethod>
<vmethod name='getName'><ret-type><pointer type-name='language_name'/></ret-type></vmethod>
<vmethod name='getContents'><ret-type><pointer type-name='abstract_building_contents'/></ret-type></vmethod>
<vmethod name='write_file'> <pointer name='file' type-name='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer name='file' type-name='file_compressorst'/>
<enum name='loadversion' type-name='save_version'/>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod ret-type='int32_t' name='getReligionID'/>
<vmethod ret-type='bool' name='razeable'/>
<vmethod ret-type='bool' name='canDisplayBody'/>
<vmethod ret-type='int32_t' name='getDefensePerc'/>
<vmethod name='getEntombed'><ret-type><pointer type-name='location_deathst'/></ret-type></vmethod>
<vmethod name='generate_xml'>
<pointer type-name='stl-fstream'/>
<int32_t name='indent'/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='abstract_building_mead_hallst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<compound name='door'> not a compound
<int32_t name="race" ref-target='creature_raw'/>
<enum name='item_type' type-name='item_type'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
</compound>
<compound name='wall'> not a compound
<int32_t name="race" ref-target='creature_raw'/>
<enum name='item_type' type-name='item_type'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
</compound>
</class-type>
<class-type type-name='abstract_building_counting_housest' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
</class-type>
<class-type type-name='abstract_building_guildhallst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<compound name='contents' type-name='abstract_building_contents'/>
</class-type>
<class-type type-name='abstract_building_hospitalst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<compound name='contents' type-name='abstract_building_contents'/>
</class-type>
<bitfield-type type-name='abstract_building_tower_flag' base-type='uint32_t'> bay12: ABSTRACT_BUILDING_TOWER_FLAG_*
<flag-bit name='dungeon'/>
<flag-bit name='improved_fortifications'/>
<flag-bit name='gated_courtyard'/>
<flag-bit name='feast_hall'/>
</bitfield-type>
<class-type type-name='abstract_building_towerst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<bitfield name='spec_flag' base-type='uint32_t' type-name='abstract_building_tower_flag'/>
</class-type>
<class-type type-name='abstract_building_keepst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
</class-type>
<class-type type-name='abstract_building_dark_towerst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
</class-type>
<bitfield-type type-name='abstract_building_underworld_spire_flag' base-type='uint32_t'> bay12: AB_UNDERWORLD_SPIRE_FLAG_*
<flag-bit name='gate_open'/>
</bitfield-type>
<class-type type-name='abstract_building_underworld_spirest' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<bitfield name='spire_flags' base-type='uint32_t' type-name='abstract_building_underworld_spire_flag'/>
</class-type>
-- Inline union
<struct-type type-name='religious_practice_data' is-union='true'>
<int32_t name='practice_id'/>
<int32_t name='Deity' ref-target='historical_figure'/>
<int32_t name='Religion' ref-target='historical_entity'/>
</struct-type>
<class-type type-name='abstract_building_templest' inherits-from='abstract_building'>
<enum name='deity_type' type-name='religious_practice_type'/>
<compound name='deity_data' type-name='religious_practice_data'/>
<compound name='name' type-name='language_name'/>
<compound name='contents' type-name='abstract_building_contents'/>
</class-type>
<class-type type-name='abstract_building_libraryst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<stl-vector name='copied_artifacts' type-name='int32_t' ref-target='artifact_record'/>
<int32_t name='last_check_year' init-value='-1'/>
<int32_t name='last_check_season_tick' init-value='-1'/>
<int32_t name='last_posting_year' init-value='-1'/>
<int32_t name='last_posting_season_tick' init-value='-1'/>
<compound name='contents' type-name='abstract_building_contents'/>
</class-type>
<struct-type type-name='rental_roomst'>
<int32_t name='id'/>
<stl-string name='location'/>
<int32_t name='civzone' ref-target='building'/>
<int32_t name='world_x'/>
<int32_t name='world_y'/>
<int32_t name='world_z'/>
</struct-type>
<class-type type-name='abstract_building_inn_tavernst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<compound name='contents' type-name='abstract_building_contents'/>
<stl-vector name='room_info' pointer-type='rental_roomst'/>
<int32_t name='next_room_info_id'/>
</class-type>
<class-type type-name='abstract_building_marketst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
</class-type>
<class-type type-name='abstract_building_tombst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<compound name='entombed' type-name='location_deathst'/>
<int32_t name='precedence' comment='rough_side_size'/>
</class-type>
<class-type type-name='abstract_building_dungeonst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<enum base-type='int16_t' name='dungeon_type' type-name='dungeon_type'/>
<int32_t name='upper_abb_id'/>
<compound name='entombed' type-name='location_deathst'/>
<int32_t name='total_block_size'/>
<int32_t name='worldgen_entity_total' comment='not saved'/>
<int32_t name='worldgen_beast_total' comment='not saved'/>
</class-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->