forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.world.xml
1765 lines (1521 loc) · 74.4 KB
/
df.world.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='worldgen_region_type'>
<enum-item name='SWAMP'/>
<enum-item name='DESERT'/>
<enum-item name='FOREST'/>
<enum-item name='MOUNTAINS'/>
<enum-item name='OCEAN'/>
<enum-item name='LAKE'/>
<enum-item name='GLACIER'/>
<enum-item name='TUNDRA'/>
<enum-item name='GRASSLAND'/>
<enum-item name='HILLS'/>
</enum-type>
<enum-type type-name='worldgen_range_type'>
<enum-item name='ELEVATION'/>
<enum-item name='RAINFALL'/>
<enum-item/>
<enum-item name='TEMPERATURE'/>
<enum-item/>
<enum-item name='DRAINAGE'/>
<enum-item name='VOLCANISM'/>
<enum-item name='SAVAGERY'/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
</enum-type>
<enum-type type-name='units_other_id'>
<enum-item name='ANY_RIDER'/>
<enum-item name='ANY_BABY2'/>
</enum-type>
<df-other-vectors-type type-name='units_other' index-enum='units_other_id' item-type='unit'>
</df-other-vectors-type>
<enum-type type-name='conflict_level'>
<enum-item name='None' value='-1'/>
<enum-item name='Encounter'/>
<enum-item name='Horseplay'/>
<enum-item name='Training'/>
<enum-item name='Brawl'/>
<enum-item name='Nonlethal'/>
<enum-item name='Lethal'/>
<enum-item name='NoQuarter'/>
</enum-type>
<struct-type type-name='incident_hfid'>
<int32_t name="hfid" ref-target='historical_figure' since='v0.40.01'/>
<int32_t name='unk_hfid' ref-target='historical_figure' since='v0.44.01' comment="same as hfid seen"/>
<int32_t name='unk_hfid2' ref-target='historical_figure' since='v0.44.01' comment="same as hfid seen"/>
<stl-vector name='unk_3' type-name='int32_t' ref-target='identity' since='v0.44.01'/>
</struct-type>
<struct-type type-name='incident'
instance-vector='$global.world.incidents.all' key-field='id'>
dtor 0x8C1AE10
<int32_t name='id'/>
<enum name='type' base-type='int32_t'>
<enum-item name='Death'/>
<enum-item name='Crime' comment="Visible indirectly through convictions or crime effects (e.g. killing/maiming someone)"/>
<enum-item name='Attack'/>
<enum-item name='Escalation'/>
<enum-item name='Reunion'/>
<enum-item name='YieldDemand'/>
<enum-item name='Performance'/>
<enum-item name='Artifact'/>
<enum-item name='Writing'/>
<enum-item name='SelfID'/>
<enum-item name='RefusedID'/>
</enum>
<stl-vector name="witnesses" type-name='int32_t' ref-target='unit'/>
<int32_t name='unk_year'/>
<int32_t name='unk_year_tick'/>
<int32_t name="victim" ref-target='unit'/>
<compound type-name='incident_hfid' name='victim_hf'/>
<int32_t name="victim_race" ref-target='creature_raw' since='v0.40.01'/>
<int32_t name="victim_caste" ref-target='caste_raw' aux-value='$$.victim_race' since='v0.40.01'/>
<int32_t name='entity2' ref-target='historical_entity' since='v0.40.01' comment="Seen with Crime"/>
<int32_t name='unk_v40_1c' init-value='-1' since='v0.40.01'/>
<int32_t name='criminal' ref-target='unit'/>
<compound name='criminal_hf' type-name='incident_hfid'/>
<int32_t name='criminal_race' ref-target='creature_raw' since='v0.40.01'/>
<int32_t name='criminal_caste' ref-target='caste_raw' aux-value='$$.killer_race' since='v0.40.01'/>
<int32_t name='entity1' ref-target='historical_entity' since='v0.40.01'/>
<compound type-name='incident_hfid' name='unk_v40_2c'/>
<int32_t name="crime_id" ref-target='crime'/>
<int32_t name='site' ref-target='world_site'/>
<int32_t name='unk_v40_3a' init-value='-1' since='v0.40.01' comment="41 seen on witnessed thief, 37 on interrogation target. Only one of each, though."/>
<int32_t name='unk_v40_3b' init-value='-1' since='v0.40.01'/>
<int32_t name='entity' ref-target='historical_entity'/>
<int32_t name='event_year'/>
<int32_t name='event_time'/>
<bitfield name='flags'>
<flag-bit name='announced_missing'/>
<flag-bit name='discovered'/>
<flag-bit name='unk2' since='v0.40.01'/>
</bitfield>
<enum base-type='int16_t' name='death_cause' type-name='death_type'/>
-- v0.40.01
<enum name='conflict_level' type-name='conflict_level'/>
<int32_t name='activity_id' ref-target='activity_entry'/>
<int32_t name='world_x' comment="Location appears to be in in-game tiles world wide"/>
<int32_t name='world_y'/>
<int32_t name='world_z'/>
<int32_t name='unk_80'/>
<int32_t name='unk_10c'/>
<compound name='data' is-union='true'>
<pointer type-name='incident_data_performance' name='Performance'/>
<pointer type-name='incident_data_artifact' name='Artifact'/>
<pointer type-name='incident_data_writing' name='Writing'/>
<pointer type-name='incident_data_identity' name='SelfID'/>
<pointer type-name='incident_data_identity' name='RefusedID'/>
</compound>
</struct-type>
<struct-type type-name='incident_data_performance'>
<enum name='performance_event' base-type='int32_t' type-name='performance_event_type'/>
<stl-vector name='participants'>
<pointer>
<enum name='performance_event' base-type='int32_t' type-name='performance_event_type' comment='can e.g. be music for a dance musician'/>
<int32_t name='role_index' comment='index into the instruments vector for music, with corresponding roles for other forms, possibly a dance_form_sub1 entry for dances'/>
<compound type-name='incident_hfid'/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t name='reference_id' comment='history_event id/poetic_form id/musical_form id/dance_form_id or -1'/>
<int32_t name='written_content_id' comment='-1 if not used'/>
<int32_t name='abstract_location' comment="location at which the performance was held"/>
<int32_t name='poetic_form_id' ref-target='poetic_form' comment='More than one form can be used in a performance, e.g. dance to music'/>
<int32_t name='musical_form_id' ref-target='musical_form'/>
<int32_t name='dance_form_id' ref-target='dance_form'/>
</struct-type>
-- There ought to be either a type specific reference or a written content one. Not both.
-- Story has only been seen with a history event id, not a written content one, but the sample was small.
-- Poem has been seen with either a poetic form or a written content reference.
-- Music has been seen only with a music form reference, but the sample was small.
-- Music has been seen to be "sang" and "spoke" in DF displayed thoughts, but no instrument playing
-- or simulation. It's still unknown how to determine what action participants took.
-- Dance has been seen only with a dance form reference, but the sample was small.
<struct-type type-name='incident_data_artifact'>
<enum name='state' base-type='int32_t'>
<enum-item name='Held'/>
<enum-item name='Dropped'/>
<enum-item name='Gained'/>
<enum-item name='Given'/>
<enum-item name='Denied'/>
<enum-item name='Destroyed'/>
</enum>
<int32_t name='artifact_id' ref-target='artifact_record'/>
<compound name='unk_3' type-name='incident_hfid'/>
<compound name='unk_4' type-name='incident_hfid'/>
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='unk_5'/>
<int32_t name='unk_6'/>
<int32_t name='unk_7'/>
<stl-vector name='unk_8' type-name='int32_t'/>
<int32_t name='unk_9'/>
</struct-type>
<struct-type type-name='incident_data_writing'>
<enum name='state' base-type='int32_t'>
<enum-item name='Dropped'/>
<enum-item name='Given'/>
</enum>
<int32_t name='content_id' ref-target='written_content'/>
<compound type-name='incident_hfid'/>
<compound type-name='incident_hfid'/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<stl-vector type-name='int32_t'/>
<int32_t/>
</struct-type>
<struct-type type-name='incident_data_identity'>
<stl-vector pointer-type='incident_hfid'/>
</struct-type>
<struct-type type-name='crime'
instance-vector='$global.world.crimes.all' key-field='id'>
dtor 0x8C166D0
<int32_t name='id'/>
<enum name='mode' base-type='int32_t'>
<enum-item name='ProductionOrderViolation'/>
<enum-item name='ExportViolation'/>
<enum-item name='JobOrderViolation'/>
<enum-item name='ConspiracyToSlowLabor'/>
<enum-item name='Murder'/>
<enum-item name='DisorderlyBehavior'/>
<enum-item name='BuildingDestruction'/>
<enum-item name='Vandalism'/>
<enum-item name='Theft'/>
<enum-item name='Robbery'/>
<enum-item name='BloodDrinking'/>
<enum-item name='Embezzlement' since='v0.47.01'/>
<enum-item name='AttemptedMurder' since='v0.47.01'/>
<enum-item name='Kidnapping' since='v0.47.01'/>
<enum-item name='AttemptedKidnapping' since='v0.47.01'/>
<enum-item name='AttemptedTheft' since='v0.47.01'/>
<enum-item name='Treason' since='v0.47.01'/>
<enum-item name='Espionage' since='v0.47.01'/>
<enum-item name='Bribery' since='v0.47.01'/>
</enum>
<compound name='punishment'>
<int32_t name='hammerstrikes'/>
<int32_t name='prison_time'/>
<int32_t name='give_beating'/>
</compound>
<int32_t name='criminal' ref-target='unit'/>
<int32_t name='criminal_hf' ref-target='historical_figure'/>
<int32_t name='criminal_hf_2' ref-target='historical_figure' comment="Usually all 3 same value, but Espionage gave different HF for 2/3, probably boss"/>
<int32_t name='criminal_hf_3' ref-target='historical_figure'/>
<compound name='convict_data'>
<stl-vector name='unk_v47_vector_1' type-name='int32_t' since='v0.47.01' comment="don't know what the number refers to"/>
<int32_t name='convicted' ref-target='unit'/>
</compound>
<int32_t name='convicted_hf' ref-target='historical_figure'/>
<int32_t name='convicted_hf_2' ref-target='historical_figure' comment="the two additional copies probably refers to some other roles"/>
<int32_t name='convicted_hf_3' ref-target='historical_figure' comment="-1 seen in case of convicted but not yet punished. Tossed in prison has -1, so it might be 'punishment finished'"/>
<compound name='victim_data'>
<stl-vector name='unk_v47_vector_2' type-name='int32_t' since='v0.47.01'/>
<int32_t name='victim' ref-target='unit'/>
</compound>
<int32_t name='victim_hf' ref-target='historical_figure'/>
<int32_t name='victim_hf_2' ref-target='historical_figure' comment="the two additional copies probably refers to some other roles, but all 3 are identical in cases seen"/>
<int32_t name='victim_hf_3' ref-target='historical_figure'/>
<stl-vector name='unk_v47_vector_3' type-name='int32_t' since='v0.47.01' comment="this vector hasn't been seen, but is guessed at based on the pattern above"/>
<bitfield name='flags'>
<flag-bit name='sentenced'/>
<flag-bit name='discovered'/>
<flag-bit name='needs_trial'
comment='i.e. the player chooses whom to convict'/>
</bitfield>
<int32_t name='incident_id' ref-target='incident'/>
<int32_t name='event_year'/>
<int32_t name='event_time'/>
<int32_t name='discovered_year'/>
<int32_t name='discovered_time'/>
<int32_t name='site' ref-target='world_site'/>
<int32_t name='entity' ref-target='historical_entity'/>
<int32_t name='item_id' ref-target='item' comment="seen with crime of theft"/>
<stl-vector name='reports'>
<pointer>
<int32_t name='death_id' ref-target='incident' comment="-1..."/>
<int32_t name='accused_id' ref-target='historical_figure' comment="hfid of accused"/>
<int32_t name='accused_id_2' ref-target='historical_figure' comment="copy of accused_id?"/>
<stl-vector name='unk_vec'/> judging by sizes and padding, haven't seen populated
</pointer>
</stl-vector>
<stl-vector name='counterintelligence' since='v0.47.01'>
<pointer>
<int32_t name='unk_1' init-value='-1' comment="suspect entity, as counterintelligence shows organization unknown for examined cases. Also -1 when there is no organization"/>
<int32_t name="identified_hf" ref-target='historical_figure'/>
<int32_t name="identified_hf_2" ref-target='historical_figure' comment="same as the one above or -1 only ones seen."/>
<stl-vector name='unk_vec'/> judging by sizes and padding, haven't seen populated
</pointer>
</stl-vector>
<stl-vector name='witnesses' pointer-type='crime_witness'/>
<int32_t name='agreement_id' ref-target='agreement'/>
</struct-type>
<struct-type type-name='crime_witness'>
<int32_t name='incident_id' ref-target='incident'/>
<int32_t name='crime_id' ref-target='crime'/>
<enum name='witness_claim'>
<enum-item name='SawDisorderlyConduct'/>
<enum-item name='FoundTheBody'/>
<enum-item name='SawObjectWasMissing'/>
<enum-item name='SawObjectWasDisturbed'/>
<enum-item name='SawSomebodyAdmireObject'/>
<enum-item name='Confessed'/>
<enum-item name='ImplicatesSomeone'/>
<enum-item name='AccusesSomeone'/>
</enum>
<int32_t name='year'/>
<int32_t name='tick'/>
<int32_t name='witness_id' ref-target='unit'/>
<compound name='witness_data' type-name='incident_hfid'/>
<int32_t name='accused_id' ref-target='unit'/>
<int32_t name='accused_identity_id' ref-target='identity'/>
<compound name='accused_data' type-name='incident_hfid'/>
<int32_t name='reported_year'/>
<int32_t name='reported_tick'/>
</struct-type>
<struct-type type-name='mission_campaign_report'>
<static-array name='travel_x' type-name='int32_t' count='64'/>
<static-array name='travel_y' type-name='int32_t' count='64'/>
<static-array name='travel_year' type-name='int32_t' count='64'/>
<static-array name='travel_year_tick' type-name='int32_t' count='64'/>
<int32_t name='travel_count'/>
<static-array name='event_id' type-name='int32_t' count='64' ref-target='history_event'/>
<static-array name='event_year' type-name='int32_t' count='64'/>
<static-array name='event_year_tick' type-name='int32_t' count='64'/>
<int32_t name='events_count'/>
</struct-type>
<struct-type type-name='mission_report'>
<stl-vector name='campaigns' pointer-type='mission_campaign_report' />
<int32_t name='current_campaign'/>
<int32_t name='origin_x'/>
<int32_t name='origin_y'/>
<int32_t name='unk_5'/>
<stl-string name="title"/>
<int32_t name='unk_7'/>
<int32_t name='year'/>
<int32_t name='year_tick'/>
<stl-vector name='unk_10'/>
<int32_t name='unk_11'/>
<int32_t name='unk_12'/>
</struct-type>
<struct-type type-name='spoils_report'>
<stl-string name="title"/>
<int32_t name='unk_1'/>
<int32_t name='year'/>
<int32_t name='year_tick'/>
<stl-vector name='item_types'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name='item_subtypes'>
<int16_t refers-to='(item-subtype-target $$._parent._parent.item_types[$$._key] $)'/>
</stl-vector>
<stl-vector name='mat_types' type-name='int16_t' ref-target='material'/>
<stl-vector name='mat_indices' type-name='int32_t'/>
<stl-vector name='item_counts' type-name='int32_t'/>
<stl-vector name='creature_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='creature_castes' type-name='int32_t' ref-target='caste_raw' aux-value='$$._parent.creature_races[$._key]'/>
<stl-vector name='creature_counts' type-name='int32_t'/>
</struct-type>
<struct-type type-name='interrogation_report'>
<stl-string name='title'/>
<int32_t name='officer_hf' ref-target='historical_figure'/>
<int32_t name='subject_hf' ref-target='historical_figure'/>
<stl-string name='officer_name'/>
<int32_t name='unk_3'/>
<int32_t name='year'/>
<int32_t name='tick'/>
<compound name='unk'>
<int32_t name='officer_hf2' ref-target='historical_figure' comment='appears identical to officer_hf'/>
<int32_t name='subject_hf2' ref-target='historical_figure' comment='appears identical to subject_hf'/>
<int16_t name='unk_8'/>
<int32_t name='unk_9'/>
<int32_t name='unk_10' init-value='-1'/>
<int32_t name='unk_11' init-value='-1000000'/>
<int32_t name='unk_12' init-value='-1000000'/>
<int32_t name='unk_13'/>
<int16_t name='unk_14'/>
<int32_t name='unk_15'/>
<int32_t name='unk_16'/>
<int32_t name='unk_17'/>
<int32_t name='unk_18'/>
<int32_t name='unk_19'/>
<int32_t name='unk_20'/>
<int32_t name='unk_21'/>
<bitfield name='flags'>
<flag-bit/>
</bitfield>
</compound>
<int32_t name='unk_23'/>
<int32_t name='unk_24'/>
<int32_t name='unk_25'/>
<int32_t name='unk_26'/>
<stl-vector name='unk_27' type-name='int32_t'/> ?
<int32_t name='subject_identity_id' ref-target='identity'/>
<stl-vector name='unk_29'/> ?
<stl-vector name='unk_30' type-name='int32_t'/>
<stl-vector name='unk_31' type-name='int32_t' ref-target='history_event' comment='seen hfs_formed_intrigue_relationship'/>
<stl-vector name='details' pointer-type='stl-string'/>
</struct-type>
<struct-type type-name='cursed_tomb'>
<int8_t name='triggered'/>
<stl-vector type-name='int32_t' name='coffin_skeletons' ref-target='item'/>
<int32_t name='disturbance' ref-target='interaction'/>
<stl-vector type-name='int32_t' name='treasures' ref-target='item'/>
<int32_t comment='reference to something, not an interaction or syndrome'/>
<int32_t/>
<stl-vector name='trigger_regions' comment='normally just one, 3x3 around the coffin'>
<pointer>
<int32_t name='x_min'/>
<int32_t name='y_min'/>
<int32_t name='z_min'/>
<int32_t name='x_max'/>
<int32_t name='y_max'/>
<int32_t name='z_max'/>
</pointer>
</stl-vector>
<compound type-name='coord' name='coffin_pos'/>
</struct-type>
<struct-type type-name='ocean_wave_maker'>
<compound type-name='coord' name='pos'/>
<int8_t name='interval'/>
<compound name='coastline' type-name='coord2d_path'/>
<compound name='wave_origin' type-name='coord2d_path'/>
</struct-type>
<struct-type type-name='coord_rect'>
<int16_t name='x1'/>
<int16_t name='y1'/>
<int16_t name='x2'/>
<int16_t name='y2'/>
<int16_t name='z'/>
</struct-type>
<struct-type type-name='embark_feature' comment="layers plus river seen">
<compound type-name='coord2d' name='world_tile'/>
<compound type-name='coord2d' name='mid_level_tile' comment="the MLT the feature resides in"/>
<int16_t name='local_feature_idx'/>
<int32_t name='global_feature_idx' ref-target='world_underground_region'/>
<int32_t name='unk10'/>
<enum name='layer' type-name='layer_type' base-type='int16_t'/>
<compound type-name='coord2d' name='local' comment="the top left corner of the MLT, in embark relative coordinates"/>
<int16_t name='z_min'/>
<int16_t name='z_max'/>
</struct-type>
<enum-type type-name='combat_report_event_type' base-type='int16_t'>
<enum-item/>
<enum-item name='Deflected'/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='Unconscious'/>
<enum-item name='Stunned'/>
<enum-item name='MoreStunned'/>
<enum-item name='Winded'/>
<enum-item name='MoreWinded'/>
<enum-item name='Nausea'/>
<enum-item name='MoreNausea'/>
<enum-item/>
<enum-item/>
<enum-item name='ExtractInjected'/>
<enum-item name='ExtractSprayed'/>
<enum-item name='BloodSucked'/>
<enum-item name='SeveredPart'/>
<enum-item/>
<enum-item name='KnockedBack'/>
<enum-item name='StuckIn'/>
<enum-item name='LatchOnPart'/>
<enum-item name='LatchOn'/>
<enum-item name='Enraged'/>
<enum-item name='PassThrough'/>
<enum-item name='GlancesAway'/>
<enum-item/>
<enum-item/>
<enum-item name='MajorArtery'/>
<enum-item name='Artery'/>
<enum-item name='MotorNerve'/>
<enum-item name='SensoryNerve'/>
<enum-item name='NoForce'/>
<enum-item name='Interrupted'/>
</enum-type>
<struct-type type-name='glowing_barrier'>
<bool name='triggered' comment='set when the glowing barrier vanishes, preventing later HFS events'/>
<int32_t/>
<stl-vector name='buildings' type-name='int32_t' ref-target='building' comment='when building is deconstructed, causes glowing barrier at pos to vanish and (in fort mode) spawns HFS one z-level below if it has not been set off already'/>
<compound name='pos' type-name='coord' comment='coordinates of a GlowingBarrier or GlowingFloor tiletype'/>
</struct-type>
<struct-type type-name='deep_vein_hollow'>
<bool name='triggered' comment='set when the underworld spire is breached, preventing subsequent HFS events'/>
<int32_t/>
<compound name='tiles' type-name='coord_path' comment='tile coordinates correspond to open spaces within an underworld spire; revealing one of these tiles triggers the HFS demon wave'/>
<compound name='pos' type-name='coord' comment='seemingly unused'/>
</struct-type>
<struct-type type-name='campfire'>
<compound type-name='coord' name='pos'/>
<int32_t name='timer'/>
</struct-type>
<struct-type type-name='web_cluster'>
<stl-vector type-name='int16_t' name='x'/>
<stl-vector type-name='int16_t' name='y'/>
<int16_t name='z'/>
<int16_t name='race' ref-target='creature_raw'/>
<int16_t name='caste' ref-target='caste_raw' aux-value='$$.race' />
<compound type-name='coord2d' name='pos_min'/>
<compound type-name='coord2d' name='pos_max'/>
<stl-vector type-name='int32_t' name='ambushers' ref-target='unit'/>
</struct-type>
<struct-type type-name='fire'>
<compound type-name='coord' name='pos'/>
<int16_t name='timer'/>
<uint16_t name='inner_temp_cur' init-value='10508' comment='applied to own tile'/>
<uint16_t name='outer_temp_cur' init-value='10000' comment='applied to neighboring tiles'/>
<uint16_t name='inner_temp_max' init-value='10708'/>
<uint16_t name='outer_temp_max' init-value='10708'/>
</struct-type>
<struct-type type-name='ocean_wave'>
<compound type-name='coord2d' name='dest'/>
<compound type-name='coord2d' name='cur'/>
<int16_t name='z'/>
<bool name='spawn_flows' comment='set once the wave reaches the coast'/>
<int8_t name='move_timer'/>
<int8_t name='unk_timer' comment='starts at 120 and randomly decrements'/>
</struct-type>
<struct-type type-name='coin_batch' instance-vector='$global.world.coin_batches'>
<int32_t name='year'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int32_t name='entity' ref-target='historical_entity'/>
<int32_t name='ruler' ref-target='historical_figure'/>
<compound name='image_front'>
<int32_t name='id' ref-target='art_image_chunk'/>
<int16_t name='subid' ref-target='art_image' aux-value='$$.id'/>
</compound>
<compound name='image_back'>
<int32_t name='id' ref-target='art_image_chunk'/>
<int16_t name='subid' ref-target='art_image' aux-value='$$.id'/>
</compound>
</struct-type>
<class-type type-name='job_handler' original-name='job_handlerst' custom-methods='true'>
<df-linked-list name='list' type-name='job_list_link'/>
<stl-vector name='postings' comment='entries never removed'>
<pointer>
<int32_t name='idx' comment='equal to position in vector'/>
<pointer type-name='job' name='job' comment='bad if dead flag is set'/>
<bitfield name='flags' base-type='int32_t'>
<flag-bit name='dead'/>
</bitfield>
<int32_t comment='not saved'/>
</pointer>
</stl-vector>
<static-array count='2000'>
<pointer type-name='unit' comment="List seems to be processed index 0 first and then removal swaps last to first"/>
<int32_t comment="Seems to have very few bits set in lower half, (not copied with the pointer?)"/>
<int32_t comment="Seems to have many bits set in lower half, (not copied with the pointer?)"/>
</static-array>
<int32_t comment='next slot'/>
<virtual-methods>
<vmethod name='cancel_job'><pointer type-name='job'/></vmethod>
</virtual-methods>
</class-type>
<class-type type-name='building_handler' original-name='building_handlerst' custom-methods='true'>
dtor 85316f0
<stl-vector name='all' pointer-type='building'/>
<compound name='other' type-name='buildings_other'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='building'/>
<bool name='check_bridge_collapse'/>
<bool name='check_machine_collapse' comment='?'/>
<virtual-methods>
<vmethod name='get_machine_hookup_list' comment='ToadyOnes name'>
<pointer name='hookups'><stl-vector type-name='int16_t'/></pointer>
<int16_t name='type'/>
<int16_t name='subtype'/>
<int16_t name='x1'/>
<int16_t name='y1'/>
<int16_t name='x2'/>
<int16_t name='y2'/>
<int16_t name='z'/>
<int8_t name='is_vertical'/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='machine_handler' original-name='machine_handlerst' custom-methods='true'>
<stl-vector name='all' pointer-type='machine'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='machine'/>
<virtual-methods>
<vmethod>
<pointer type-name='building'/>
</vmethod>
</virtual-methods>
</class-type>
<struct-type type-name='mental_picture'>
<compound name='unk'>
<stl-vector name='elements' pointer-type='mental_picture_elementst'/>
<int32_t/>
<stl-vector name='properties' pointer-type='mental_picture_propertyst'/>
<int32_t/>
</compound>
<int32_t init-value='-1'/>
<int32_t init-value='-1'/>
</struct-type>
32bit size is 4 bytes more than should be
<struct-type type-name='belief_system' key-field='id' instance-vector='$global.world.belief_systems.all'>
<int32_t name='id'/>
<stl-vector name='mental_pictures'>
<pointer>
<stl-vector pointer-type='mental_picture'/>
</pointer>
</stl-vector>
<stl-vector name='deities' type-name='int32_t' ref-target="historical_figure" comment="historical figure ID of gods the belief system is concerned with"/>
<stl-vector name='worship_levels' type-name='int32_t' comment="worship level for each god referenced in the deities field"/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
</struct-type>
<struct-type type-name='divination_set_roll'>
<stl-vector name='result' type-name='int32_t' comment="When the divination die linked to the parent divination_set is rolled, the effect of this particular divination_set_roll will be carried out if the die lands on any of the values specified here."/>
<enum name='effect_type' base-type='int32_t'>
<enum-item name='MediumBlessing'/>
<enum-item name='MinorBlessing'/>
<enum-item name='MediumCurse'/>
<enum-item name='MinorCurse'/>
<enum-item name='Fortune'/>
</enum>
<int32_t name='effect' comment="When effect_type is MediumBlessing, MinorBlessing, MediumCurse or MinorCurse, this is the ID of the interaction to be carried out (targeting the creature who rolled the divination die). When effect_type is Fortune, this determines which of the hardcoded divination fortune messages is to be displayed."/>
</struct-type>
<struct-type type-name='divination_set' instance-vector='$global.world.divination_sets.all' key-field='id'>
<int32_t name='id' comment="currently matches index into vector"/>
<int32_t name='deity_id' ref-target='historical_figure'/>
<int32_t name='owner_id' ref-target='historical_entity' comment="religion owning the set"/>
<stl-vector name='image_set_ids' type-name='int32_t' ref-target='image_set'/>
<stl-vector name='rolls' pointer-type='divination_set_roll'/>
</struct-type>
<struct-type type-name='image_set' instance-vector='$global.world.image_sets.all' key-field='id'>
<int32_t name='id'/>
<int32_t name='unk_2'/>
<stl-vector name='unk_vec1'>
<pointer>
<int32_t name='unk_1'/>
<int32_t name='unk_2' init-value='-1'/>
<int32_t name='unk_3' init-value='-1'/>
<int32_t name='unk_4'/>
</pointer>
</stl-vector>
<stl-vector name='unk_vec2' type-name='int16_t'/>
</struct-type>
<struct-type type-name='world'>
dtor 89fff80
<!-- <compound> -->
<stl-vector name='glowing_barriers' pointer-type='glowing_barrier'/>
<stl-vector name='deep_vein_hollows' pointer-type='deep_vein_hollow'/>
<stl-vector name='cursed_tombs' pointer-type='cursed_tomb'/>
<stl-vector name='engravings' pointer-type='engraving'/>
<compound name='vermin'>
<stl-vector name='all' pointer-type='vermin'/>
<stl-vector name='colonies' pointer-type='vermin'/>
</compound>
<stl-vector name='dirty_waters' pointer-type='coord' comment="for making blood flow downstream in rivers, but also includes mud in artificial water channels"/>
<stl-vector name='campfires' pointer-type='campfire'/>
<stl-vector name='web_clusters' pointer-type='web_cluster'/>
<stl-vector name='fires' pointer-type='fire'/>
<stl-vector name='ocean_wave_makers' pointer-type='ocean_wave_maker'/>
<stl-vector name='ocean_waves' pointer-type='ocean_wave'/>
<stl-vector name='constructions' pointer-type='construction'/>
<stl-vector name='murky_pools' pointer-type='coord_rect'/>
<stl-vector name='embark_features' pointer-type='embark_feature' comment="populated at embark"/>
<stl-vector name='site_glowing_barriers' pointer-type='glowing_barrier'/>
<stl-vector name='site_deep_vein_hollows' pointer-type='deep_vein_hollow'/>
<stl-vector name='site_cursed_tombs' pointer-type='cursed_tomb'/>
<stl-vector name='site_engravings' pointer-type='engraving'/>
<stl-vector name='site_constructions' pointer-type='construction'/>
<stl-vector name='site_embark_features' pointer-type='embark_feature'/>
<stl-vector name='site_ocean_wave_makers' pointer-type='ocean_wave_maker'/>
<stl-vector name='site_murky_pools' pointer-type='coord_rect'/>
<!-- </compound> -->
<stl-vector name='effects' pointer-type='effect_info'/>
<stl-vector name='coin_batches' pointer-type='coin_batch'/>
<stl-vector name='populations' pointer-type='local_population'/>
--
<stl-vector name='manager_orders' pointer-type='manager_order'/>
<int32_t name='manager_order_next_id'/>
<stl-vector name='mandates' pointer-type='mandate'/>
-- Entities
<compound name='entities'>
<stl-vector name='all' pointer-type='historical_entity'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='historical_entity'/>
</compound>
-- Apparently a temporary buffer for world construction stuff
<compound name='worldgen_coord_buf'>
<static-array count='20000' type-name='coord2d' name='slots'/>
<int16_t name='next_slot'/>
</compound>
-- Units
<compound name='units'>
<stl-vector name='all' pointer-type='unit'/>
<stl-vector name='active' pointer-type='unit' comment='not sorted, entry 0 is adventurer'/>
<compound name='other' type-name='units_other'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='unit'/>
<stl-vector name='unknown' since='v0.44.06'/>
</compound>
-- Unit and Art Chunks
<stl-vector name='unit_chunks' pointer-type='unit_chunk'/>
<stl-vector name='art_image_chunks' pointer-type='art_image_chunk'/>
-- Nemesis
<compound name='nemesis'>
<stl-vector name='all' pointer-type='nemesis_record'/>
<static-array name='other' count='28'>
<stl-vector pointer-type='nemesis_record'/>
</static-array>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='nemesis_record'/>
<bool name='unk4'/>
</compound>
-- Items
<compound name='items'>
dtor 852f4b0
<stl-vector name='all' pointer-type='item'/>
<compound name='other' type-name='items_other'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='item'/>
<stl-vector name='bad_tag' type-name='int32_t'/>
</compound>
-- Artifacts
<compound name='artifacts'>
<stl-vector name='all' pointer-type='artifact_record'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='artifact_record'/>
</compound>
-- Jobs and projectiles
<compound name='jobs' type-name='job_handler'/>
<df-linked-list name='proj_list' type-name='proj_list_link'/>
-- Buildings
<compound name='buildings' type-name='building_handler'/>
-- Machines (connected groups of gears and so on)
<compound name='machines' type-name='machine_handler'/>
-- Flow guides (whatever those are)
<compound name='flow_guides'>
<stl-vector name='all' pointer-type='flow_guide'/>
<stl-vector name='bad' pointer-type='flow_guide' has-bad-pointers='true'/>
</compound>
-- Stockpile classifier
<compound name='stockpile'>
<static-array type-name='int32_t' name='num_jobs' count='10' index-enum='hauler_type'/>
<static-array type-name='int32_t' name='num_haulers' count='10' index-enum='hauler_type'/>
-- Pointers used as tokens; data never accessed by the look of it:
<compound name='simple1'>
<int8_t/>
<int8_t name='food'/>
<int8_t/>
<int8_t/>
</compound>
<stl-vector name='seeds' type-name='int8_t'
index-refers-to='(find-plant-raw $)'/>
<stl-vector name='plants' type-name='int8_t'
index-refers-to='(find-plant-raw $)'/>
<stl-vector name='cheese' type-name='int8_t'
index-refers-to='(find-creature $)'/>
<stl-vector name='meat_fish' type-name='int8_t'
index-refers-to='(find-creature $)'/>
<stl-vector name='eggs' type-name='int8_t'
index-refers-to='(find-creature $)'/>
<stl-vector name='leaves' type-name='int8_t'
index-refers-to='(find-plant-raw $)'/>
<stl-vector name='plant_powder' type-name='int8_t'
index-refers-to='(find-plant-raw $)'/>
<compound name='simple2'>
<int8_t name='seeds'/>
<int8_t name='plants'/>
<int8_t name='cheese'/>
<int8_t name='fish'/>
<int8_t name='meat'/>
<int8_t name='leaves'/>
<int8_t name='powder'/>
<int8_t name='eggs'/>
</compound>
<stl-vector name='liquid_plant' type-name='int8_t'
index-refers-to='(find-plant-raw $)'/>
<stl-vector name='liquid_animal' type-name='int8_t'
index-refers-to='(find-creature $)'/>
<stl-vector name='liquid_builtin' type-name='int8_t'
index-refers-to='(material-by-id $ -1)'/>
<compound name='simple3'>
<int8_t name='glob_fat'/>
<int8_t name='glob_tallow'/>
<int8_t name='glob_paste'/>
<int8_t name='glob_pressed'/>
<int8_t name='weapons'/>
<int8_t name='shields'/>
<int8_t name='ammo'/>
<int8_t name='coins'/>
<int8_t name='bar_blocks'/>
<int8_t name='gems' comment='not large'/>
<int8_t name='finished_goods'/>
<int8_t name='tanned_skins'/>
<int8_t name='thread_cloth'/>
<int8_t/>
<int8_t/>
<int8_t/>
</compound>
</compound>
-- Plants
<compound name='plants'>
<stl-vector name='all' pointer-type='plant'/>
<stl-vector name='shrub_dry' pointer-type='plant'/>
<stl-vector name='shrub_wet' pointer-type='plant'/>
<stl-vector name='tree_dry' pointer-type='plant'/>
<stl-vector name='tree_wet' pointer-type='plant'/>
<stl-vector name='empty' pointer-type='plant'/>
</compound>
-- Adventure quests
<!--
<df-linked-list name='quests' type-name='quest_list_link'/>
-->
-- Unknown
<compound name='enemy_status_cache' comment='?'>
<static-array name='slot_used' type-name='bool' count='500'/>
<static-array name='rel_map' count='500'>
<static-array type-name='int32_t' count='500'/>
</static-array>
<int32_t name='next_slot'/>
</compound>
<compound name='schedules'>
<stl-vector name='all' pointer-type='schedule_info' />
<stl-vector name='bad' pointer-type='schedule_info' has-bad-pointers='true' />
</compound>
<compound name='squads'>
<stl-vector name='all' pointer-type='squad'/>
<stl-vector name='bad' has-bad-pointers='true' pointer-type='squad'/>
</compound>
<compound name='formations'>
<stl-vector name='all'>