-
Notifications
You must be signed in to change notification settings - Fork 81
/
df.world-site.xml
1466 lines (1315 loc) · 70.3 KB
/
df.world-site.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
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<data-definition>
<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='item_id' comment='may vary once more types are added'/>
<int32_t name='written_content_id' comment='may vary once more types are added'/>
<int32_t name='unit_id' ref-target='unit'/>
<int32_t name='activity_entry_id' ref-target='activity_entry'/>
<int32_t name='activity_event_id'/>
</struct-type>
<struct-type type-name='site_reputation_report' original-name='abstract_building_reviewst'>
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='location_id' ref-target='abstract_building'/>
<int32_t name='x'/>
<int32_t name='y'/>
<int32_t name='year'/>
<int32_t name='season_tick'/>
<static-array name='reputation' type-name='int32_t' count='8' index-enum='abstract_building_reputation_type'/>
</struct-type>
<struct-type type-name='site_reputation_info' original-name='ab_review_infost'>
<stl-vector name='reports' pointer-type='site_reputation_report'/>
</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>
<enum-type type-name='abstract_building_type'> bay12: AbstractBuilding
<enum-item name='MEAD_HALL'/>
<enum-item name='KEEP'/>
<enum-item name='TEMPLE'/>
<enum-item name='DARK_TOWER'/>
<enum-item name='MARKET'/>
<enum-item name='TOMB'/>
<enum-item name='DUNGEON'/>
<enum-item name='UNDERWORLD_SPIRE'/>
<enum-item name='INN_TAVERN'/>
<enum-item name='LIBRARY'/>
<enum-item name='COUNTING_HOUSE'/>
<enum-item name='GUILDHALL'/>
<enum-item name='TOWER'/>
<enum-item name='HOSPITAL'/>
</enum-type>
<enum-type type-name='abstract_building_flags'> bay12: AbstractBuildingFlag
<enum-item name='WG_RUINED'/>
<enum-item name='DOES_NOT_EXIST'/>
<enum-item name='DISCOVERED' comment="gets toggled when an adventurer has visited it."/>
<enum-item name='PWG_RUINED'/>
<enum-item name='VISITORS_ALLOWED'/>
<enum-item name='NON_CITIZENS_ALLOWED'/>
<enum-item name='MEMBERS_ONLY'/>
</enum-type>
<struct-type type-name='abstract_building_contents' original-name='location_infost'>
<bitfield name='need_more' 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>
<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'/>
the following is not saved:
<int32_t name='location_tier'/>
<int32_t name='location_value'/>
<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>
<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> bay12: 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'/>
</pointer>
</stl-vector>
<df-flagarray name='flags' index-enum='abstract_building_flags'/>
<pointer name='archinfo' comment='in temples; hfig is the god'> bay12: 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'/>
</pointer>
<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'> bay12: ab_reputation_infost
<static-array name='reputation' type-name='int32_t' count='8' index-enum='abstract_building_reputation_type'/>
</pointer>
<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' type-name='site_building_item'/>
<compound name='wall' type-name='site_building_item'/>
</class-type>
<class-type type-name='abstract_building_keepst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
</class-type>
<enum-type type-name='religious_practice_type' base-type='int32_t'> bay12: ReligiousPracticeType
<enum-item name='NONE' value='-1'/>
<enum-item name='WORSHIP_HFID'/>
<enum-item name='RELIGION_ENID'/>
</enum-type>
<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_dark_towerst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
</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'> bay12: DungeonType
<enum-item name='DUNGEON' comment='STANDARD'/>
<enum-item name='SEWERS'/>
<enum-item name='CATACOMBS'/>
</enum>
<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>
<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'> bay12: AB_UNDERWORLD_SPIRE_FLAG_*
<flag-bit name='gate_open'/>
</bitfield>
</class-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> bay12: 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'/>
</pointer>
</stl-vector>
<int32_t name='next_room_info_id'/>
</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>
<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_towerst' inherits-from='abstract_building'>
<compound name='name' type-name='language_name'/>
<bitfield name='spec_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>
</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>
<enum-type type-name='world_site_type'> bay12: SiteType
<enum-item name='PlayerFortress'/>
<enum-item name='DarkFortress'/>
<enum-item name='Cave'/>
<enum-item name='MountainHalls'/>
<enum-item name='ForestRetreat'/>
<enum-item name='Town'/>
<enum-item name='ImportantLocation'/>
<enum-item name='LairShrine'/>
<enum-item name='Fortress'/>
<enum-item name='Camp'/>
<enum-item name='Monument'/>
</enum-type>
<enum-type type-name='fortress_type' base-type='int16_t'> bay12: FortressType
<enum-item name='NONE' value='-1'/>
<enum-item name='CASTLE'/>
<enum-item name='TOWER'/>
<enum-item name='MONASTERY'/>
<enum-item name='FORT'/>
</enum-type>
<enum-type type-name='monument_type' base-type='int16_t'> bay12: MonumentType
<enum-item name='NONE' value='-1'/>
<enum-item name='TOMB'/>
<enum-item name='VAULT'/>
</enum-type>
<enum-type type-name='lair_type' base-type='int16_t'> bay12: LairType
<enum-item name='NONE' value='-1'/>
<enum-item name='SIMPLE_MOUND' comment='Night creatures'/>
<enum-item name='SIMPLE_BURROW' comment='animal, (semi)megabeast, night creature(!)'/>
<enum-item name='LABYRINTH'/>
<enum-item name='SHRINE'/>
<enum-item name='WILDERNESS_LOCATION' comment='In mountains, hosting Rocs in vanilla'/>
</enum-type>
<enum-type type-name='site_building_profile_type' base-type='int32_t'> bay12: SiteBuildingProfileType
<enum-item name='NONE' value='-1'/>
<enum-item name='AB' comment='abstract building'/>
<enum-item name='SRB' comment='site realization building'/>
</enum-type>
<struct-type type-name='property_ownership' original-name='site_building_profilest'>
<int32_t name="index"/>
<enum name='profile' type-name='site_building_profile_type'/>
<int32_t name='property_index' comment="union: ab_id or srb_type"/>
<int32_t name="owner_hfid" ref-target='historical_figure'/>
<int32_t name="owner_entity_id" ref-target='historical_entity'/>
<int32_t name="last_owner_hfid" ref-target='historical_figure'/>
<int32_t name="last_owner_entity_id" ref-target='historical_entity'/>
</struct-type>
<struct-type type-name='unit_placement_infost'>
<int32_t name="unit_id" ref-target='unit'/> this is a union in bay12 but they're both the same type so why bother
<int32_t name="pos_x"/>
<int32_t name="pos_y"/>
<int32_t name="pos_z"/>
<int32_t name="container_it_id" init-value='-1'/>
</struct-type>
<struct-type type-name='populacest'>
<stl-vector name="nemesis" type-name='int32_t' ref-target='nemesis_record'/>
<stl-vector name="artifacts" pointer-type='artifact_record'/>
<stl-vector name="animals" pointer-type='world_population'/>
<stl-vector name="inhabitants" pointer-type='world_site_inhabitant'/>
<stl-vector name='units' pointer-type='unit_placement_infost'/>
<stl-vector name='hist_fig_id' type-name='int32_t' comment='worldgen only'/>
<stl-vector name='hist_fig' pointer-type='historical_figure' comment='worldgen only'/>
<int32_t name='births_wanted'/>
<stl-vector name='pregnancy_candidate' pointer-type='nemesis_record'/>
<stl-vector name='marriage_candidate_f_f' pointer-type='nemesis_record'/>
<stl-vector name='marriage_candidate_f_m' pointer-type='nemesis_record'/>
<stl-vector name='marriage_candidate_f_fm' pointer-type='nemesis_record'/>
<stl-vector name='marriage_candidate_m_f' pointer-type='nemesis_record'/>
<stl-vector name='marriage_candidate_m_m' pointer-type='nemesis_record'/>
<stl-vector name='marriage_candidate_m_fm' pointer-type='nemesis_record'/>
</struct-type>
<struct-type type-name='site_first_calc_special_itemsst'>
<stl-vector name='type' type-name='item_type'/>
<stl-vector name='subtype' type-name='int16_t'/>
<stl-vector name='mat' type-name='int16_t'/>
<stl-vector name='matgloss' type-name='int32_t'/>
<stl-vector name='civ_id' type-name='int32_t' ref-target='historical_entity'/>
<stl-vector name='site_id' type-name='int32_t' ref-target='world_site'/>
</struct-type>
<struct-type type-name='site_cropst'>
<int32_t name='production_zone_index'/>
<int32_t name='allotment_index'/>
<int32_t name='count'/>
<int32_t name='planting_week'/>
<stl-vector name='growth_allotment_index' type-name='int32_t'/>
<stl-vector name='growth_num_multiplier' type-name='int32_t'/>
<bitfield name='flag'> bay12: SITE_CROP_FLAG_*
<flag-bit name='has_growths'/>
</bitfield>
</struct-type>
<struct-type type-name='site_religious_structurest'>
<enum name='type' type-name='religious_practice_type'/>
<compound name='data' type-name='religious_practice_data'/>
<int32_t name='points'/>
</struct-type>
<struct-type type-name='site_religious_structure_batchst'>
<static-array count='20' type-name='site_religious_structurest' name='rstruct'/>
<int32_t name='rstructnum'/>
</struct-type>
<struct-type type-name='site_culture_infrastructurest'>
<stl-vector name='religious_structure_batch' pointer-type='site_religious_structure_batchst'/>
</struct-type>
<enum-type type-name='site_flag_type'> SiteFlagType
<enum-item name='HIDDEN'/>
<enum-item name='RUINED'/>
<enum-item name='IGNORED_BY_LEGENDS'/>
<enum-item name='HAS_MARKET'/>
<enum-item name='VISITED'/>
<enum-item name='ACTIVE'/>
<enum-item name='LOADED'/>
<enum-item name='SUBORDINATE'/>
<enum-item name='PASSED_FIRST_REALIZATION'/>
<enum-item name='SETTLED'/>
<enum-item name='COMPLETELY_SUPERCEDED'/>
</enum-type>
<enum-type type-name='location_death_type' base-type='int32_t'> bay12: LocationDeathType
<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"/>
<int32_t name="epid" ref-target='historical_entity' comment="failed to see any connections between these entities and the sites. Might be something else"/>
<int32_t name="breed_id"/>
<int32_t name='first_year_used' comment="might be start year"/>
<int32_t name='last_year_used' comment="might be end year"/>
<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>
<struct-type type-name='site_map_infost'>
<enum name="fortress_type" type-name='fortress_type' init-value='NONE' comment='Only when site.type=Fortress'/>
<enum name="monument_type" type-name='monument_type' init-value='NONE' comment='Only when site.type=Monument'/>
<enum name="lair_type" type-name='lair_type' init-value='NONE' comment='Only when site.type=LairShrine'/>
<stl-vector name="lair_characteristic" type-name='lair_characteristic_type' comment="only on SIMPLE_MOUND and SIMPLE_BURROW"/>
<int32_t name="entrance_x" init-value='-1000000'/>
<int32_t name="entrance_y" init-value='-1000000'/>
<int32_t name="entrance_z" init-value='-1000000'/>
<int32_t name="creator" ref-target='historical_figure' since='v0.40.01' comment="all vaults, no others seen"/>
<int32_t name="overall_pop_capacity" init-value='0' since='v0.40.01' comment="all vaults, no others seen, always 100"/>
<int32_t name='wg_build_work_days' init-value='0' comment="all towers, no others. Seed is a guess based on the very large numbers"/>
<enum name='practice_type' type-name='religious_practice_type' base-type='int32_t'/>
<compound name='practice_data' type-name='religious_practice_data'/>
</struct-type>
<enum-type type-name='site_architecture_change_type' base-type='int32_t'> bay12: SiteArchitectureChangeType
<enum-item name='NONE' value='-1'/>
<enum-item name='DOMINANT_ENTITY'/>
<enum-item name='SRB_RUINED'/>
<enum-item name='SRP_RUINED'/>
<enum-item name='GENERALIZED_DAMAGE'/> bay12: SITE_ARCHITECTURE_CHANGE_GENERALIZED_DAMAGE_FLAG_*
<enum-item name='GENERALIZED_DEATH'/> bay12: SITE_ARCHITECTURE_CHANGE_GENERALIZED_DEATH_FLAG_*
</enum-type>
<struct-type type-name='site_architecture_changest'>
<enum name="type" type-name='site_architecture_change_type'/>
<compound is-union='true' union-tag-field='type'>
<int32_t name='NONE'/>
<int32_t name='DOMINANT_ENTITY' ref-target='historical_entity'/>
<int32_t name='SRB_RUINED'/>
<int32_t name='SRP_RUINED'/>
<int32_t name='GENERALIZED_DAMAGE' comment='percentage'/>
<int32_t name='GENERALIZED_DEATH_ID'/>
</compound>
<int32_t name="year"/>
<int32_t name="year_tick" init-value='-1' comment='bay12: season_count'/>
<bitfield name="flags" base-type='uint32_t'> bay12: SITE_ARCHITECTURE_CHANGE_FLAG_*
<flag-bit name='handled_once'/>
</bitfield>
<uint32_t name="spec_flag" init-value='0' since="v0.44.07"/> varies based on type
</struct-type>
<struct-type type-name='wg_site_culture_identity_religious_practicest'>
<enum name='type' type-name='religious_practice_type' base-type='int32_t'/>
<compound name='data' type-name='religious_practice_data'/>
<int32_t name='points'/>
</struct-type>
<struct-type type-name='wg_site_culture_identityst'>
<int32_t name='entity_id'/>
<stl-vector pointer-type='wg_site_culture_identity_religious_practicest' name='religious_practice'/>
<stl-vector pointer-type='wg_site_culture_identity_interactionst' name='interaction'/>
</struct-type>
<enum-type type-name='cultural_interaction_type' base-type='int32_t'> bay12: CulturalInteractionType
<enum-item name='NONE' value='-1'/>
<enum-item name='ENTITY_1_PERSECUTES_ENTITY_2'/>
<enum-item name='ENTITY_1_RIOTS_AGAINST_ENTITY_2'/>
<enum-item name='ENTITY_1_INVEIGHS_AGAINST_ENTITY_2'/>
<enum-item name='ENTITY_1_ENCOURAGES_TOLERANCE_OF_ENTITY_2'/>
</enum-type>
<struct-type type-name='wg_site_culture_identity_interactionst'>
<enum type-name='cultural_interaction_type' name='type'/>
<int32_t name='id1'/>
<int32_t name='id2'/>
<int32_t name='year'/>
<int32_t name='severity'/>
</struct-type>
<struct-type type-name='wg_site_culturest'>
<stl-vector pointer-type='wg_site_culture_identityst' name='identity'/>
</struct-type>
<struct-type type-name='world_site' key-field='id'
instance-vector='$global.world.world_data.sites'
original-name='sitest'>
<compound name='name' type-name='language_name'/>
<code-helper name='describe'>(describe-obj $.name)</code-helper>
<int32_t name="civ_id" ref-target='historical_entity'/>
<int32_t name="cur_owner_id" ref-target='historical_entity'/>
<enum base-type='int16_t' name="type" type-name='world_site_type'/>
<compound name='pos' type-name='coord2d'/>
<int32_t name="id"/>
<compound name='populace' type-name='populacest'/>
<int32_t name="resource_pile_id"/>
<int16_t name="rgn_min_x" comment='in embark tiles'/>
<int16_t name="rgn_max_x"/>
<int16_t name="rgn_min_y"/>
<int16_t name="rgn_max_y"/>
<int16_t name="rgn_min_z"/>
<int16_t name="rgn_max_z"/>
<int32_t name="global_min_x" comment='in embark tiles'/>
<int32_t name="global_min_y"/>
<int32_t name="global_max_x"/>
<int32_t name="global_max_y"/>
<uint32_t name="seed" comment='random'/>
<uint32_t name="first_seed" comment='random'/>
<int32_t name="resident_count" comment='count living in houses and shops'/>
<int32_t name="brood_creature"/>
<int32_t name="brood_caste"/>
<pointer name='special_items' type-name='site_first_calc_special_itemsst'/>
<int32_t name="size" comment='Caves have non zero numbers. No others.'/>
<int32_t name="added_size" comment='Subset of caves can have non zero.'/>
<int32_t name="infrastructure_pop_level" comment='Monument 0, LairShrine 5, Camp 20, others varying'/>
<int32_t name="base_infrastructure_pop_level" comment=' "site_level" is in here somewhere. Same as for unk_124, but varying ones always less/equal'/>
<static-array name='infrastructure' type-name='int32_t' count='8' comment="Has all zero for Fortress, Camp, PlayerFortress, Monument, and LairShrine. Cave can have value, while DarkFortress, MountainHalls, ForestRetreat and Town all have at least one non zero value"/>
<stl-vector name='small_crop' pointer-type='site_cropst' comment='MountainHall, Town, DarkFortress, but not all'/>
<stl-vector name='orchard' pointer-type='site_cropst' comment='forest retreat'/>
<compound name='culture_infrastructure' type-name='site_culture_infrastructurest'/>
<df-flagarray name='flag' index-enum='site_flag_type'/>
<stl-vector name="buildings" pointer-type='abstract_building'/>
<int32_t name="next_building_id"/>
<stl-vector name="property_ownership" since='v0.47.01' pointer-type='property_ownership' comment='bay12: site_building_profile'/>
<int32_t name="next_property_ownership_id" since='v0.47.01'/>
<int32_t name="created_tick" comment='bay12: lastvisited not created'/>
<int32_t name="created_year" comment='bay12: lastvisited not created'/>
<int32_t name="moss_counter" comment='constant 0'/>
<int32_t name="weathering_counter" comment='constant 0'/>
<compound name='recorded_entrance' type-name='coord'/>
<pointer name="realization" type-name='world_site_realization'/>
<pointer name="subtype_info" type-name='site_map_infost' comment='bay12: site_map_info'/>
<compound name='location_death' type-name='location_deathst'/>
<int32_t name='min_depth' since='v0.40.01' comment='compared to feature_init.end_depth'/>
<int32_t name='max_depth' since='v0.40.01' comment='compared to feature_init.start_depth'/>
<int32_t name='mined_hours' init-value='0' comment="only MountainHalls, but only subset of them"/>
<stl-vector name="architecture_change" pointer-type='site_architecture_changest' since='v0.40.01'/>
<stl-vector name="active_site_conquest" since='v0.40.01'>
<pointer> bay12: active_site_conquestst
<int32_t name='conquest_eventcol' ref-target='history_event_collection'/>
<int32_t name='entity' ref-target='historical_entity'/>
</pointer>
</stl-vector>
<stl-vector name="active_insurrection" since='v0.40.01'>
<pointer> bay12: active_insurrectionst
<int32_t name='insurrection_eventcol' ref-target='history_event_collection'/>
<int32_t name='target_entity' ref-target='historical_entity'/>
<stl-vector name='involved_ci_id' type-name='int32_t'/>
<int32_t name='conflict_timer'/>
<int32_t name='conflict_cycle'/>
</pointer>
</stl-vector>
<stl-vector name="generalized_death" since='v0.40.01'>
<pointer> bay12: site_generalized_deathst
<int32_t name='id'/>
<compound name='death' type-name='location_deathst'/>
<int32_t name='entity_id' ref-target='historical_entity'/>
</pointer>
</stl-vector>
<int32_t name='next_generalized_death_id' init-value='0' since='v0.43.01'/>
<stl-vector name='construction_blueprint' since='v0.43.01'>
<pointer> bay12: site_construction_blueprintst
<int32_t name='x'/>
<int32_t name='y'/>
<int32_t name='z'/>
<static-array name='construction_type' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='construction_subtype' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='construction_subcat1' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='construction_subcat2' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='construction_jobitemflag' count='16'><static-array count='16' type-name='uint32_t'/></static-array>
<static-array name='construction_phase' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='building_type' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='building_subtype' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='building_subcat1' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='building_subcat2' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='building_jobitemflag' count='16'><static-array count='16' type-name='uint32_t'/></static-array>
<static-array name='building_phase' count='16'><static-array count='16' type-name='int32_t'/></static-array>
<static-array name='progress_flag' count='16'><static-array count='16' type-name='uint32_t'/></static-array> bay12: SCBP_PROGRESS_FLAG_*; not initialized OR saved
<static-array name='removal_flag' count='16'><static-array count='16' type-name='uint32_t'/></static-array> bay12: SCBP_REMOVAL_FLAG_*
</pointer>
</stl-vector>
<int32_t name='construction_work_finished_season_count' since='v0.43.01'/>
<int32_t name='construction_work_finished_race' since='v0.40.01'/>
<pointer name="site_message_board"> bay12: site_message_boardst
<stl-vector name='message' pointer-type='messagest'/>
</pointer>
<int32_t name='looted_perc' since='v0.44.06'/>
<pointer name='resource_pile' since='v0.44.01' type-name='resource_pilest'/>
<compound name='temp_path' type-name='coord2d_path'/>
<stl-vector name="entity_links" pointer-type='entity_site_link' since='v0.40.01'/>
<stl-vector name="cultural_identities" pointer-type='cultural_identity' since='v0.40.01'/>
<stl-vector name="wg_occupation" since='v0.42.01' pointer-type='occupation'/> during worldgen only
<int32_t name='this_years_bloodsuck_murders' since='v0.43.01' comment='uninitialized'/>
<stl-vector name='wg_quest_posting' since='v0.44.01'>
<pointer> bay12: wg_quest_postingst
<enum name='type' base-type='int32_t'> bay12: WGQuestPostingType
<enum-item name='RETURN_ARTIFACT_TO_THIS_SITE'/>
</enum>
<pointer name='origin_ent' type-name='historical_entity'/>
<pointer name='artifact' type-name='artifact_record'/>
<pointer name='dest_site' type-name='world_site'/>
<pointer name='dest_bld' type-name='abstract_building'/>
<bitfield name="flags" base-type='uint32_t'> bay12: WG_QUEST_POSTING_FLAG_*
<flag-bit name='obsolete'/>
</bitfield>
</pointer>
</stl-vector>
<static-array name='wg_queued_merchant' count='20'><pointer type-name='historical_figure' has-bad-pointers='true'/></static-array>
<int32_t name='wg_queued_merchant_num'/>
<pointer name='wg_site_culture' pointer-type='wg_site_culturest'/>
</struct-type>
<bitfield-type type-name='cultural_identity_entity_flags' base-type='uint32_t'> bay12: CULTURAL_IDENTITY_ENTITY_FLAG_*
<flag-bit name='hostile_occupation'/>
<flag-bit name='part_of_occupation'/>
</bitfield-type>
<enum-type type-name='opinion_collection_type' base-type='int32_t'> bay12: OpinionCollectionType
<enum-item name='NONE' value='-1'/>
<enum-item name='PRO_OCCUPATION'/>
<enum-item name='NEUTRAL_TO_OCCUPATION'/>
<enum-item name='AGAINST_OCCUPATION'/>
<enum-item name='PART_OF_OCCUPATION'/>
<enum-item name='PRO_RULER'/>
<enum-item name='NEUTRAL_TO_RULER'/>
<enum-item name='AGASINT_RULER'/>
</enum-type>
<struct-type type-name='cultural_identity' original-name='cultural_identityst' key-field='id'
instance-vector='$global.world.cultural_identities.all'>
<int32_t name="id"/>
<int32_t name="site_id" ref-target='world_site'/>
<int32_t name="civ_id" ref-target='historical_entity'/>
<stl-vector name='group_log' comment='the circumstances of groups joining or leaving this culture'>
<pointer> bay12: cultural_identity_entityst
<int32_t name="group_id" ref-target='historical_entity'/>
<int32_t name='start_year' init-value='-1' comment='when the group joined the culture, or -1 if it founded the culture'/>
<int32_t name='start_tick' init-value='-1'/>
<int32_t name='end_year' init-value='-1' comment='when the group left the culture, or -1 if it has not left'/>
<int32_t name='end_tick' init-value='-1'/>
<int32_t name='contact_year' init-value='-1'/>
<int32_t name='contact_tick' init-value='-1'/>
<bitfield name='flag' type-name='cultural_identity_entity_flags'/>
<bitfield name='former_flag' type-name='cultural_identity_entity_flags'/>
<stl-vector name="opinion_collection" type-name="opinion_collection_type"/>
<stl-vector name='opinion_collection_weight' type-name='int32_t' comment='same length as unk_24; elements always sum to 10000'/>
<int32_t name="perceived_strength" init-value='100'/>
</pointer>
</stl-vector>
<static-array name='ethic' count='22' type-name='ethic_response' index-enum='ethic_type'/>
<static-array name='values' type-name='int32_t' count='64' index-enum='value_type'/>
<stl-vector name='events' pointer-type='entity_event'/>
<int32_t name='world_general_knowledge_year' init-value='-1'/>
<stl-vector name="known_heid" type-name='int32_t' ref-target='history_event'/>
<int32_t name='origin_ci_id' ref-target='cultural_identity'/>
<int32_t name='origin_split_ci_heid' ref-target='history_event'/>
<int32_t name='cave_adapt_counter' comment='0 or 800000'/>
<stl-vector name='religious_practice'>
<pointer> bay12: cultural_identity_religious_practicest
<enum name='type' type-name='religious_practice_type'/>
<compound name='data' type-name='religious_practice_data'/>
<int32_t name='points'/>
</pointer>
</stl-vector>
<stl-vector name='interaction'>
<pointer> bay12: cultural_identity_interactionst
<enum type-name='cultural_interaction_type' name='type'/>
<int32_t name='id1'/>
<int32_t name='id2'/>
<int32_t name='year'/>
<int32_t name='severity'/>
</pointer>
</stl-vector>
<int32_t name="mushy_minimum_population"/>
</struct-type>
<struct-type type-name='world_site_inhabitant' original-name='site_entity_populationst'>
<int32_t name="count"/>
<compound name='pop_spec' type-name='entity_pop_specifierst'/>
</struct-type>
<struct-type type-name='srb_entity_popst'>
<int32_t name="count"/>
<compound name='pop_spec' type-name='entity_pop_specifierst'/>
</struct-type>
<struct-type type-name='srb_itemst'>
<int32_t name='production_zone_index'/>
<enum name='allotment' type-name='resource_allotment_specifier_type'/>
<int32_t name='controlling_civ' ref-target='historical_entity'/>
<int32_t name='allotment_idx'/>
<int32_t name='amount'/>
<bitfield name='flag'> bay12: SRB_ITEM_FLAG_*
<flag-bit name='for_sale'/>
<flag-bit name='for_storage'/>
</bitfield>
</struct-type>
<enum-type type-name='feature_layer_type' base-type='int16_t'> bay12: FeatureLayerType
<enum-item name='NONE' value='-1'/>
<enum-item name='SUBTERRANEAN'/>
<enum-item name='MAGMA_CORE'/>
<enum-item name='UNDERWORLD'/>
</enum-type>
<enum-type type-name='layer_connection_type' base-type='int16_t'> bay12: LayerConnectionType
<enum-item name='NONE' value='-1'/>
<enum-item name='CAVE_TOP'/>
<enum-item name='CAVE_PASSAGE'/>
<enum-item name='CAVE_BOTTOM'/>
<enum-item name='PIT_TOP'/>
<enum-item name='PIT_BOTTOM'/>
<enum-item name='CAVE_TOP_DEAD_END'/>
<enum-item name='MAGMA_POOL_TOP'/>
<enum-item name='MAGMA_POOL_CLOSED_PIPE'/>
<enum-item name='MAGMA_POOL_BOTTOM'/>
<enum-item name='VOLCANO_TOP'/>
<enum-item name='VOLCANO_CLOSED_PIPE'/>
<enum-item name='VOLCANO_BOTTOM'/>
<enum-item name='DEEP_SPECIAL_EXPOSED_CAP'/>
<enum-item name='DEEP_SPECIAL_TUBE_TO_CAP'/>
<enum-item name='DEEP_SPECIAL_BURIED_CAP'/>
<enum-item name='DEEP_SURFACE_MOUNTAIN'/>
<enum-item name='DEEP_SURFACE_TUBE'/>
<enum-item name='DEEP_SURFACE_PORTAL'/>
</enum-type>
<enum-type type-name='site_underground_layer_type' base-type='int32_t'> bay12: SiteUndergroundLayerType
<enum-item name='NONE' value='-1'/>
<enum-item name='CATACOMBS'/>
<enum-item name='DUNGEON'/>
<enum-item name='SEWERS'/>
<enum-item name='PITS'/>
<enum-item name='PITS_TOWER'/>
<enum-item name='PITS_INDUSTRIAL'/>
<enum-item name='PITS_LIVING'/>
<enum-item name='CIVILIZED'/>
<enum-item name='CIVILIZED_LIVING'/>
<enum-item name='CIVILIZED_INDUSTRIAL'/>
<enum-item name='CIVILIZED_CONNECTION_FARMING'/>
<enum-item name='CIVILIZED_CONNECTION_FORTRESS'/>
<enum-item name='HIVE'/>
<enum-item name='HIVE_NATURAL_CAVE_CONNECTION'/>
<enum-item name='HIVE_LIVING'/>
<enum-item name='HIVE_TROPHY'/>
<enum-item name='HIVE_TRAPS'/>
<enum-item name='HIVE_BROOD'/>
<enum-item name='HIVE_ANIMALS'/>
<enum-item name='HIVE_COMPOST'/>
<enum-item name='CIVILIZED_GUILD_QUARTER'/>
<enum-item name='CIVILIZED_MERCHANT_QUARTER'/>
</enum-type>
<struct-type type-name='site_underground_layerst'>
<enum name="type" type-name='site_underground_layer_type'/>
<enum name="subtype" type-name='site_underground_layer_type'/>
<int32_t name="top_el"/>
<int32_t name="bottom_el"/>
<int32_t name="local_id"/>
<int32_t name="sul_ab_id"/>
<int32_t name="n_x"/>
<int32_t name="s_x"/>
<int32_t name="w_y"/>
<int32_t name="e_y"/>
<int32_t name="n_el"/>
<int32_t name="s_el"/>
<int32_t name="w_el"/>
<int32_t name="e_el"/>
<int32_t name="n_id"/>
<int32_t name="s_id"/>
<int32_t name="w_id"/>
<int32_t name="e_id"/>
<int32_t name="down_x"/>
<int32_t name="down_y"/>
<int32_t name="down_id"/>
<int32_t name="up_x"/>
<int32_t name="up_y"/>
<int32_t name="up_id"/>
<stl-vector name='connected_srb_local_id' type-name='int32_t'/>
<stl-vector name='subord_ab_local_id' type-name='int32_t'/>
<stl-vector name='layer_ab_local_id' type-name='int32_t'/>
<compound name='location_death' type-name='location_deathst'/>
<stl-vector name='pop' pointer-type='srb_entity_popst'/>
<stl-vector name='item' pointer-type='srb_itemst'/>
<stl-vector name='artifact_id' type-name='int32_t' ref-target='artifact_record'/>
<static-array name='industry_allocation' count='50' type-name='civzone_type'/>
<int32_t name="industry_allocation_num"/>
<int32_t name="upper_left_abs_smm_x"/>
<int32_t name="upper_left_abs_smm_y"/>
</struct-type>
<struct-type type-name='world_site_realization' original-name='site_realizationst'>
<stl-vector name='buildings' pointer-type='site_realization_building'/>
<int32_t name="num_buildings"/>
<int32_t name="cur_sul_id"/>
<int32_t name="num_areas"/>
<static-array name='mini_flags' count='17'>
<static-array count='17'>
<bitfield base-type='uint8_t'> bay12: SITE_REALIZATION_FEATURE_*
<flag-bit name='road'/>
<flag-bit name='water'/>
<flag-bit name='marked'/>
<flag-bit name='underground_nonlayer'/>
</bitfield>
</static-array>
</static-array>
<static-array name='mini_tiles' count='17'>
<static-array count='17' type-name='uint8_t'/>
</static-array>
<static-array name='mini_colors' count='17'>
<static-array count='17' type-name='int16_t'
comment='bold shl 6|bg shl 3|fg'/>
</static-array>
2601 = 51*51 = 17*3*17*3
<static-array name='road_map' count='51'>
<static-array count='51' pointer-type='site_realization_crossroads'/>
</static-array>
<static-array name='river_map' count='51'>
<static-array count='51' pointer-type='river_infost'/>
</static-array>
<static-array name='underground_info' count='17'>
<static-array count='17'> bay12: underground_infost
<int32_t name="top_el" init-value='-30000'/>
<int32_t name="bot_el" init-value='-30000'/>
<int32_t name='layer_top_el' init-value='-30000' since='v0.40.01'/>
<int32_t name='layer_bot_el' init-value='-30000' since='v0.40.01'/>
<int32_t name='underworld_top_el' init-value='-30000' since='v0.40.01'/>
<int32_t name='underworld_bot_el' init-value='-30000' since='v0.40.01'/>
<stl-vector name='feature_layer'>
<pointer> bay12: sul_feature_layerst
<int32_t name="top_el"/>
<int32_t name="bot_el"/>
<enum name="type" type-name='feature_layer_type'/>
<int16_t name="depth_level"/>
<enum name="liquid_type" type-name='tile_liquid'/>
<int32_t name="liquid_upper_filled_z"/>
<static-array name='vertical_connection' count='2' type-name='layer_connection_type'/>
<int32_t name="feature_layer"/>
<int32_t name="feature_layer_sq"/>
</pointer>
</stl-vector>
<stl-vector name='feature' since='v0.44.01'>
<pointer> bay12: sul_featurest
<int32_t name="feature_idx"/>
<int32_t name="feature_x"/>
<int32_t name="feature_y"/>
<int32_t name="feature_depth"/>
</pointer>
</stl-vector>
<int32_t name="sewer_wet_el" init-value='-30000'/>
<int32_t name="river_wet_el" init-value='-30000'/>
<bitfield name='flags' base-type='uint32_t'> bay12: UNDERGROUND_INFO_FLAG_*
<flag-bit name='want_sewer'/>
<flag-bit name='sewer'/>
<flag-bit name='n_blocked'/>
<flag-bit name='s_blocked'/>
<flag-bit name='e_blocked'/>
<flag-bit name='w_blocked'/>
<flag-bit name='n_checked'/>
<flag-bit name='s_checked'/>
<flag-bit name='e_checked'/>
<flag-bit name='w_checked'/>
<flag-bit name='n_main_connection'/>
<flag-bit name='s_main_connection'/>
<flag-bit name='e_main_connection'/>
<flag-bit name='w_main_connection'/>
<flag-bit name='n_access_connection'/>
<flag-bit name='s_access_connection'/>
<flag-bit name='e_access_connection'/>
<flag-bit name='w_access_connection'/>
<flag-bit name='orig_river'/>
<flag-bit name='have_access'/>
<flag-bit name='access_point'/>
<flag-bit name='invalid_sewer_start'/>
</bitfield>
<int32_t name="intersection_x"/>
<int32_t name="intersection_y"/>
<int32_t name="access_road_tx"/>
<int32_t name="access_road_ty"/>
<int32_t name="access_x"/>
<int32_t name="access_y"/>
<int32_t name="access_dir"/>
<stl-vector name="layer" pointer-type='site_underground_layerst'/>
<int32_t name="interlaced_w_y"/>
<int32_t name="interlaced_e_y"/>
<int32_t name="interlaced_n_x"/>
<int32_t name="interlaced_s_x"/>
<int32_t name='tunnel_w_y' init-value='-1' since='v0.40.01'/>
<int32_t name='tunnel_e_y' init-value='-1' since='v0.40.01'/>
<int32_t name='tunnel_n_x' init-value='-1' since='v0.40.01'/>
<int32_t name='tunnel_s_x' init-value='-1' since='v0.40.01'/>
</static-array>
</static-array>
<static-array name='building_map' count='17'>
<static-array count='17'> bay12: site_realization_facest
<int32_t name='id'/>
<stl-vector name='buildings' pointer-type='site_realization_building'/>
<bitfield name='flags' base-type='uint32_t'> bay12: SITE_REALIZATION_FACE_FLAG_*
<flag-bit name='tagged_for_resources'/>
</bitfield>
<uint32_t name='seed'/>
<stl-vector type-name='int32_t' name='artifacts' ref-target='artifact_record'/>
</static-array>
</static-array>
<static-array name='flags_map' count='51' since='v0.40.01'>
<static-array count='51'>
<bitfield name='flags' base-type='uint32_t'> bay12: SITE_REALIZATION_SQUARE_FLAG_*
<flag-bit name='basic_town'/>
<flag-bit name='final_wall'/>
<flag-bit name='water_block'/>
<flag-bit name='roaded_town'/>
<flag-bit name='has_river'/>
<flag-bit name='inner_town'/>
<flag-bit name='wall'/>
<flag-bit name='large_water'/>
<flag-bit name='aquifer'/>
<flag-bit name='forbidden_adv_travel'/>
<flag-bit name='special_building'/>
</bitfield>
</static-array>
</static-array>
<static-array name='zoom_tiles' count='51'>