forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.entities.xml
1508 lines (1379 loc) · 82 KB
/
df.entities.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>
<struct-type type-name='entity_occasion_info'>
<stl-vector name="occasions" pointer-type='entity_occasion' since='v0.42.01'/>
<int32_t name="next_occasion_id"/>
<static-array name='events' type-name='int32_t' count='10' ref-target='history_event'/>
<int32_t name='count' comment="number of elements used in array above"/>
</struct-type>
<struct-type type-name='entity_occasion' comment="some festivals are annual, some single time. unk_1=0 plus unk_3=0 seems to match with single time, which doesn't make much sense. Only frequency seen is yearly">
<int32_t name="id"/>
<int32_t name='unk_1' comment="0 and 1 seen"/>
<int32_t name='site' ref-target='world_site'/>
<int32_t name='unk_2' init-value='-1' comment="only -1 seen, but based on other cases, might be an abstract building"/>
<compound name='name' type-name='language_name'/>
<int32_t name='start_year_tick'/>
<int32_t name='end_year_tick'/>
<int32_t name='unk_3' comment="0-2 seen"/>
<int32_t name="event" ref-target='history_event'/>
<int32_t name='unk_4' init-value='-1' comment="only seen with unk_3=2, but is usually not set"/>
<stl-vector name='schedule' pointer-type='entity_occasion_schedule'/>
<int32_t name='unk_5' init-value='0' comment="only value seen"/>
</struct-type>
<enum-type type-name='occasion_schedule_type' base-type='int32_t'>
<enum-item name='DANCE_PERFORMANCE'/>
<enum-item name='MUSICAL_PERFORMANCE'/>
<enum-item name='POETRY_RECITAL'/>
<enum-item name='STORYTELLING'/>
<enum-item name='DANCE_COMPETITION'/>
<enum-item name='MUSICAL_COMPETITION'/>
<enum-item name='POETRY_COMPETITION'/>
<enum-item name='FOOT_RACE'/>
<enum-item />
<enum-item />
<enum-item name='WRESTLING_COMPETITION'/>
<enum-item name='THROWING_COMPETITION'/>
<enum-item name='GLADIATORY_COMPETITION'/>
<enum-item name='PROCESSION'/>
<enum-item name='CEREMONY'/>
</enum-type>
<struct-type type-name='entity_occasion_schedule'>
<enum name='type' base-type='int32_t' type-name='occasion_schedule_type'/>
<int32_t name='reference' comment="art form / event / item_type /procession start abstract building"/>
<int32_t name='reference2' comment="item_subtype / procession stop abstract building"/>
<int32_t />
<int32_t />
<int32_t />
<stl-vector name='features' pointer-type='entity_occasion_schedule_feature' />
<int32_t name='start_year_tick'/>
<int32_t name='end_year_tick'/>
</struct-type>
<enum-type type-name='occasion_schedule_feature' base-type='int32_t'>
<enum-item />
<enum-item />
<enum-item name='STORYTELLING'/>
<enum-item name='POETRY_RECITAL'/>
<enum-item name='MUSICAL_PERFORMANCE'/>
<enum-item name='DANCE_PERFORMANCE'/>
<enum-item />
<enum-item name='CRIERS_IN_FRONT'/>
<enum-item name='ORDER_OF_PRECEDENCE'/>
<enum-item name='BANNERS'/>
<enum-item name='IMAGES'/>
<enum-item />
<enum-item />
<enum-item name='ACROBATS'/>
<enum-item name='INCENSE_BURNING'/>
<enum-item name='COSTUMES'/>
<enum-item name='CANDLES'/>
<enum-item name='THE_GIVING_OF_ITEMS'/>
<enum-item name='THE_SACRIFICE_OF_ITEMS'/>
</enum-type>
<struct-type type-name='entity_occasion_schedule_feature'>
<enum name='feature' base-type='int32_t' type-name='occasion_schedule_feature'/>
<int32_t name='reference' />
<int32_t />
<int32_t />
<int32_t />
</struct-type>
<struct-type type-name='entity_activity_statistics'>
<compound name='food'>
<int32_t name='total'/>
<int32_t name='meat'/>
<int32_t name='fish'/>
<int32_t name='other'/>
<int32_t name='seeds'/>
<int32_t name='plant'/>
<int32_t name='drink'/>
</compound>
<static-array name='unit_counts' type-name='int16_t' count='152' index-enum='profession'/>
<int16_t name='population'/>
<int16_t/>
<int16_t comment='in 0.23, omnivores'/>
<int16_t comment='in 0.23, carnivores'/>
<int16_t name='trained_animals'/>
<int16_t name='other_animals'/>
<int16_t comment='in 0.23, potential soldiers'/>
<int32_t comment='in 0.23, combat aptitude'/>
<static-array name='item_counts' type-name='int32_t' count='112' index-enum='item_type'/>
<stl-vector name='created_weapons' type-name='int32_t' index-refers-to='$global.world.raws.itemdefs.weapons[$]'/>
<compound name='wealth'>
<int32_t name='total'/>
<int32_t name='weapons'/>
<int32_t name='armor'/>
<int32_t name='furniture'/>
<int32_t name='other'/>
<int32_t name='architecture'/>
<int32_t name='displayed'/>
<int32_t name='held'/>
<int32_t name='imported'/>
<int32_t/>
<int32_t name='exported'/>
</compound>
<static-array name='recent_jobs' count='7'>
<static-array count='260' type-name='int32_t' index-enum='job_type'/>
</static-array>
<int32_t name='excavated_tiles' comment='unhidden, subterranean, and excluding map features'/>
<static-array count='5' type-name='int32_t' name='death_history'/>
<static-array count='5' type-name='int32_t' name='insanity_history'/>
<static-array count='5' type-name='int32_t' name='execution_history'/>
<static-array count='5' type-name='int32_t' name='noble_death_history'/>
<int32_t name='total_deaths'/>
<int32_t name='total_insanities'/>
<int32_t name='total_executions'/>
<int32_t name='num_artifacts'/>
<int32_t comment='in 0.23, total siegers'/>
<stl-vector name='discovered_creature_foods' type-name='bool' index-refers-to='(find-creature $)'/>
<stl-vector name='discovered_creatures' type-name='bool' index-refers-to='(find-creature $)'/>
<stl-vector name='discovered_plant_foods' type-name='bool' index-refers-to='(find-plant-raw $)'/>
<stl-vector name='discovered_plants' type-name='bool' index-refers-to='(find-plant-raw $)' comment='allows planting of seeds'/>
<int16_t name='discovered_water_features'/>
<int16_t name='discovered_subterranean_features'/>
<int16_t name='discovered_chasm_features' comment='unused since 40d'/>
<int16_t name='discovered_magma_features'/>
<int16_t name='discovered_feature_layers' comment='back in 40d, this counted HFS'/>
<int32_t name='migrant_wave_idx' comment='when >= 2, no migrants'/>
<stl-vector name='found_minerals' type-name='int32_t' ref-target='inorganic_raw'
comment="Added after 'you have struck' announcement"/>
<bitfield name='found_misc'>
<flag-bit name='deep_special'/>
</bitfield>
</struct-type>
<struct-type type-name='caravan_state'>
<int32_t name='total_capacity'/>
<int32_t/>
<enum name='trade_state' base-type='int8_t'>
<enum-item name='None'/>
<enum-item name='Approaching'/>
<enum-item name='AtDepot'/>
<enum-item name='Leaving'/>
<enum-item name='Stuck'/>
</enum>
<int8_t name='depot_notified' comment='has it warned you that you need a depot'/>
<int16_t name='time_remaining'/>
<int32_t name='entity' ref-target='historical_entity'/>
<compound name='activity_stats' type-name='entity_activity_statistics'/>
<bitfield name='flags' base-type='uint32_t'>
<flag-bit name='check_cleanup' comment='set each time a merchant leaves the map or dies'/>
<flag-bit name='casualty'/>
<flag-bit name='hardship'/>
<flag-bit name='communicate' comment='send data to mountainhomes'/>
<flag-bit name='seized'/>
<flag-bit name='offended'/>
<flag-bit name='announce' comment='display merchantintro and merchantexit'/>
<flag-bit name='greatly_offended'/>
<flag-bit name='tribute' comment='caravan is delivering tribute (not merchant caravan)'/>
</bitfield>
<int32_t name='import_value'/>
<int32_t name='export_value_total'/>
<int32_t name='export_value_personal' comment='excluding foreign-produced items'/>
<int32_t name='offer_value'/>
<stl-vector name='animals' type-name='int32_t' ref-target='unit'/>
<pointer type-name='entity_sell_prices' name='sell_prices'/>
<pointer type-name='entity_buy_prices' name='buy_prices'/>
<stl-vector name='goods' type-name='int32_t' ref-target='item'/>
<int32_t name='mood' comment='reflects satisfaction with last trading session'/>
<int32_t/>
</struct-type>
<struct-type type-name='entity_buy_prices'>
<pointer type-name='entity_buy_requests' name='items'/>
<stl-vector type-name='int32_t' name='price'/>
</struct-type>
<struct-type type-name='entity_buy_requests'>
<stl-vector name='item_type' comment='guess'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name="item_subtype" comment='guess'>
<int16_t refers-to='(item-subtype-target $$._global.item_type[$$._key] $)'/>
</stl-vector>
<stl-vector name='mat_types'>
<int16_t ref-target='material' aux-value='$$._parent.mat_indices[$._key]'/>
</stl-vector>
<stl-vector name='mat_indices' type-name='int16_t'/>
<stl-vector name="mat_cats" type-name='job_material_category'/>
<stl-vector type-name='int8_t' name='priority'/>
</struct-type>
<enum-type type-name='entity_sell_category' base-type='int16_t'>
<enum-item name='Leather'/>
<enum-item name='ClothPlant'/>
<enum-item name='ClothSilk'/>
<enum-item name='Crafts'/>
<enum-item name='Wood'/>
<enum-item name='MetalBars'/>
<enum-item name='SmallCutGems'/>
<enum-item name='LargeCutGems'/>
<enum-item name='StoneBlocks'/>
<enum-item name='Seeds'/>
<enum-item name='Anvils'/>
<enum-item name='Weapons'/>
<enum-item name='TrainingWeapons'/>
<enum-item name='Ammo'/>
<enum-item name='TrapComponents'/>
<enum-item name='DiggingImplements'/>
<enum-item name='Bodywear'/>
<enum-item name='Headwear'/>
<enum-item name='Handwear'/>
<enum-item name='Footwear'/>
<enum-item name='Legwear'/>
<enum-item name='Shields'/>
<enum-item name='Toys'/>
<enum-item name='Instruments'/>
<enum-item name='Pets'/>
<enum-item name='Drinks'/>
<enum-item name='Cheese'/>
<enum-item name='Powders'/>
<enum-item name='Extracts'/>
<enum-item name='Meat'/>
<enum-item name='Fish'/>
<enum-item name='Plants'/>
<enum-item name='FruitsNuts'/>
<enum-item name='GardenVegetables'/>
<enum-item name='MeatFishRecipes'/>
<enum-item name='OtherRecipes'/>
<enum-item name='Stone'/>
<enum-item name='Cages'/>
<enum-item name='BagsLeather'/>
<enum-item name='BagsPlant'/>
<enum-item name='BagsSilk'/>
<enum-item name='ThreadPlant'/>
<enum-item name='ThreadSilk'/>
<enum-item name='RopesPlant'/>
<enum-item name='RopesSilk'/>
<enum-item name='Barrels'/>
<enum-item name='FlasksWaterskins'/>
<enum-item name='Quivers'/>
<enum-item name='Backpacks'/>
<enum-item name='Sand'/>
<enum-item name='Glass'/>
<enum-item name='Miscellaneous'/>
<enum-item name='Buckets'/>
<enum-item name='Splints'/>
<enum-item name='Crutches'/>
<enum-item name='Eggs'/>
<enum-item name='BagsYarn'/>
<enum-item name='RopesYarn'/>
<enum-item name='ClothYarn'/>
<enum-item name='ThreadYarn'/>
<enum-item name='Tools'/>
<enum-item name='Clay'/>
<enum-item name='Parchment'/>
<enum-item name='CupsMugsGoblets'/>
</enum-type>
<struct-type type-name='entity_sell_prices'>
<pointer type-name='entity_sell_requests' name='items'/>
<static-array count='107' index-enum='entity_sell_category' name='price'>
<stl-vector type-name='int32_t'/>
</static-array>
</struct-type>
<struct-type type-name='entity_sell_requests'>
<static-array count='107' index-enum='entity_sell_category' name='priority'>
<stl-vector type-name='int8_t'/>
</static-array>
</struct-type>
<struct-type type-name='entity_recipe'>
<int16_t name='subtype' ref-target='itemdef_foodst'/>
<stl-vector name='item_types'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name='item_subtypes'>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent._parent.item_types[$$._key] $)'/>
</stl-vector>
<stl-vector name='mat_types'>
<int16_t ref-target='material' aux-value='$$._parent.mat_indices[$._key]'/>
</stl-vector>
<stl-vector name='mat_indices' type-name='int16_t'/>
</struct-type>
<enum-type type-name='historical_entity_type' base-type='int16_t'>
<enum-item name='Civilization'/>
<enum-item name='SiteGovernment'/>
<enum-item name='VesselCrew'/>
<enum-item name='MigratingGroup'/>
<enum-item name='NomadicGroup'/>
<enum-item name='Religion'/>
<enum-item name='MilitaryUnit'/>
<enum-item name='Outcast'/>
<enum-item name='PerformanceTroupe'/>
<enum-item name='MerchantCompany'/>
<enum-item name='Guild'/>
</enum-type>
<struct-type type-name='honors_type' key-field='id'>
<int32_t name='id'/>
<bitfield name='flags'>
<flag-bit name='granted_to_all_new_members'/>
</bitfield>
<stl-string name='name'/>
<int32_t name='precedence_awarded'/>
<enum name='required_skill' type-name='job_skill' base-type='int16_t'/>
<bitfield name='required_skill_type'>
<flag-bit name='melee_weapon'/>
<flag-bit name='ranged_weapon'/>
</bitfield>
<int32_t name='required_skill_points'/>
<int32_t name='required_kills'/>
<int32_t name='required_battles'/>
<int32_t name='required_years_of_membership'/>
<stl-vector name='honored' type-name='int32_t' ref-target='historical_figure'/>
<stl-vector name='required_position' type-name='int32_t' ref-target='entity_position'/>
<stl-vector name='required_former_position' type-name='int32_t' ref-target='entity_position'/>
</struct-type>
<struct-type type-name='artifact_claim'>
<int32_t name='artifact_id' ref-target='artifact_record'/>
<enum name='claim_type' base-type='int32_t' type-name='artifact_claim_type'/>
<int32_t name='symbol_claim_id' init-value='-1' comment="different small numbers, but all claimed by the greedy necro diplomat, but not complete number range present"/>
<int32_t name='claim_year' init-value='-1' comment="Written contents often seem to lack info of being claimed"/>
<int32_t name='claim_year_tick' init-value='-1' comment="usually init"/>
<int32_t name='unk_1' init-value='-1'/>
<pointer name='artifact' type-name='artifact_record'/>
<int32_t name='site' ref-target='world_site'/>
<int32_t name='structure_local' init-value='-1'/>
<int32_t name='holder_hf' ref-target='historical_figure' comment="might be owner_hf. all cases encountered have had both field the same when claimed by entity"/>
<int32_t name='subregion' ref-target='world_region'/>
<int32_t name='feature_layer_id' ref-target='world_underground_region'/>
<int32_t name='unk_year' init-value='-1' comment="seems to be current year or -1. Matches up with corresponding field of artifact_record"/>
<int32_t name='unk_2' init-value='-1' comment="only other value seen was 0"/>
<int32_t name='unk_3' comment='uninitialized'/>
<pointer name='unk_4'/>
<pointer name='unk_5' type-name='historical_entity' has-bad-pointers='true'/>
<pointer name='unk_6' type-name='historical_entity' has-bad-pointers='true'/>
</struct-type>
<struct-type type-name='entity_unk_v47_1' comment='The 3 first vectors are of the same length and somehow connected'>
<int32_t name='unk_v47_1' ref-target='historical_figure' comment="seen kobold thieves and goblin snatchers, but not all thieves... seen 1 of several persecuted and expelled"/>
<int32_t name='unk_v47_2' comment="some enum?"/>
<stl-vector name='unk_v47_3' type-name='int32_t' comment="some enum?"/>
<stl-vector name='agreement' type-name='int32_t' ref-target='agreement'/>
<stl-vector name='unk_v47_5' type-name='int32_t' comment="boolean?"/>
<stl-vector name='unk_v47_6' type-name='int32_t'/>
<stl-vector name='unk_v47_7' type-name='int32_t'/>
<stl-vector name='unk_v47_8' type-name='int32_t'/>
<int32_t name='unk_v47_9'/>
</struct-type>
<struct-type type-name='historical_entity' key-field='id'
instance-vector='$global.world.entities.all'>
<enum name='type' base-type='int16_t' type-name='historical_entity_type'/>
<int32_t name='id' comment='index in the array'/>
<pointer name='entity_raw' type-name='entity_raw'/>
<int32_t name='save_file_id' comment='changes once has 100 entries'/>
<int16_t name='next_member_idx'/>
<compound name='name' type-name='language_name'/>
<code-helper name='describe'>
$.type
(describe-obj (find-creature $.race))
(describe-obj $.name)
</code-helper>
<int16_t name='race' ref-target='creature_raw'/>
<bitfield name='flags'>
<flag-bit name='neighbor' comment="Changes as you move on embark screen. Includes kobolds, cave civs, and necros (which are SiteGovernments)"/>
<flag-bit name='player_civ' comment="Changes as you change your civ on embark screen"/>
<flag-bit name='unk2'/>
<flag-bit name='unk3'/>
<flag-bit name='unreliable_lost_last_site' comment="When set, no sites remain. Doesn't say much about remaining sites when not set"/>
SiteGovernment and Outcast has this flag set when there are no site links with the residence or invasion_push_out
flag set. Others (NomadicGroup, MilitaryUnit seen) have it set when the criteria of the first group are fullfilled
together with occupation_failed, criminal_gang, and reclaim being absent as well, provided they have at least one
site link (no site link = flag not set).
Civilizations can have the flag set when having lost all sites, but usually do not, so the flag seems useless
at that level (Some exterminated kobolds have it set, while most do not, for instance. Embark culled dwarven civs
may or may not have it set).
<flag-bit name='worshipping'/>
<flag-bit name='unk6'/>
<flag-bit name='unk7'/>
<flag-bit name='player_government' comment="Appears when embarking (and having unpaused)"/>
<flag-bit name='unk9'/>
<flag-bit name='unspecific_race' comment="Can be set for SiteGovernment, always set for Guild and PerformanceTroupe. Never set for NomadicGroup even when race=-1"/>
<flag-bit name='unk11' comment="Set for a significant number of entities. It might indicate that entity is dead, although kobold civs never seem to have this flag set, even when their cave has been conquered or destroyed"/>
<flag-bit name='unk12' comment="Set for all but unnamed civs, kobold entities, vault governments, and cave civ building race Outcasts. Set when an entity creates a poetic form."/>
<flag-bit name='unk13' comment="Set for a significant number of entities"/>
<flag-bit name='unk14' comment="Set for a significant number of entities"/>
<flag-bit name='unk15' comment="Set for a limited set of entities"/>
<flag-bit name='unk16' comment="Set for a limited set of entities. All seem to be dwarven, but definitely not complete set"/>
<flag-bit name='unk17' comment="Set for a limited set of entities"/>
<flag-bit name='unk18' comment="Set for a limited set of entities"/>
<flag-bit name='unk19' comment="Set for a limited set of entities"/>
<flag-bit name='unk20' comment="Set for a limited set of entities"/>
<flag-bit name='unk21' comment='Required for entity to generate lord X, X commander, and X master position names (uses the religious name generator). removed if a poetic form is generated by a performance troupe.'/>
<flag-bit name='unk22' comment="All are religions, but not the full set"/>
<flag-bit name='unk23'/>
<flag-bit name='unk24' comment="Set for a significant number of entities"/>
<flag-bit name='military_unit_property' comment="Probably some property only those have. All present in the selection, though"/>
<flag-bit name='unk26' comment="Set for a significant number of entities"/>
</bitfield>
<stl-vector name='guild_professions' since='v0.47.01' comment="Only seen 1, and only for guilds">
<pointer>
<int32_t name='id' comment="Guess, but all are 0, and it matches the standard pattern"/>
<enum name='profession' base-type='int16_t' type-name='profession'/>
</pointer>
</stl-vector>
<stl-vector name='entity_links' pointer-type='entity_entity_link'/>
<stl-vector name='site_links' pointer-type='entity_site_link'/>
<stl-vector name='histfig_ids' type-name='int32_t' ref-target='historical_figure'/>
<stl-vector name='populations' type-name='int32_t' ref-target='entity_population'
comment='1st entry copies to unit.population_id for Adventurer?'/>
<stl-vector name='nemesis_ids' type-name='int32_t' ref-target='nemesis_record'/>
<compound name='resources'>
<stl-vector name='digger_type' type-name='int16_t' ref-target='itemdef_weaponst'/>
<stl-vector name='weapon_type' type-name='int16_t' ref-target='itemdef_weaponst'/>
<stl-vector name='training_weapon_type' type-name='int16_t' ref-target='itemdef_weaponst'/>
<stl-vector name='armor_type' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='ammo_type' type-name='int16_t' ref-target='itemdef_ammost'/>
<stl-vector name='helm_type' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='gloves_type' type-name='int16_t' ref-target='itemdef_glovesst'/>
<stl-vector name='shoes_type' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='pants_type' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='shield_type' type-name='int16_t' ref-target='itemdef_shieldst'/>
<stl-vector name='trapcomp_type' type-name='int16_t' ref-target='itemdef_trapcompst'/>
<stl-vector name='toy_type' type-name='int16_t' ref-target='itemdef_toyst'/>
<stl-vector name='instrument_type' type-name='int16_t' ref-target='itemdef_instrumentst'/>
<stl-vector name='siegeammo_type' type-name='int16_t' ref-target='itemdef_siegeammost'/>
<stl-vector name='tool_type' type-name='int16_t' ref-target='itemdef_toolst'/>
<stl-vector type-name='int32_t' since='v0.42.01'/>
<compound name='metal'>
<compound name='pick' type-name='material_vec_ref'/>
<compound name='weapon' type-name='material_vec_ref'/>
<compound name='ranged' type-name='material_vec_ref'/>
<compound name='ammo' type-name='material_vec_ref'/>
<compound name='ammo2' type-name='material_vec_ref' comment='maybe intended for siege ammo'/>
<compound name='armor' type-name='material_vec_ref' comment='also instruments, toys, and tools'/>
<compound name='anvil' type-name='material_vec_ref'/>
</compound>
<compound name='organic'>
<compound name='leather' type-name='material_vec_ref'/>
<compound name='parchment' type-name='material_vec_ref' since='v0.42.01'/>
<compound name='fiber' type-name='material_vec_ref'/>
<compound name='silk' type-name='material_vec_ref'/>
<compound name='wool' type-name='material_vec_ref'/>
<compound name='wood' type-name='material_vec_ref'/>
</compound>
<stl-vector name='metals' type-name='int32_t' ref-target='inorganic_raw' comment='bars'/>
<stl-vector name='stones' type-name='int32_t' ref-target='inorganic_raw' comment='boulders and blocks'/>
<stl-vector name='gems' type-name='int32_t' ref-target='inorganic_raw' comment='small and large cut'/>
<compound name='refuse'>
<compound name='bone' type-name='material_vec_ref'/>
<compound name='shell' type-name='material_vec_ref'/>
<compound name='pearl' type-name='material_vec_ref'/>
<compound name='ivory' type-name='material_vec_ref'/>
<compound name='horn' type-name='material_vec_ref'/>
</compound>
<compound name='misc_mat'>
<compound name='others' type-name='material_vec_ref' comment='amber and coral'/>
<compound name='glass' type-name='material_vec_ref'/>
<compound name='sand' type-name='material_vec_ref'/>
<compound name='clay' type-name='material_vec_ref'/>
<compound name='crafts' type-name='material_vec_ref'/>
<compound name='glass_unused' type-name='material_vec_ref' comment='used for vial extracts on embark'/>
<compound name='barrels' type-name='material_vec_ref' comment='also buckets, splints, and crutches'/>
<compound name='flasks' type-name='material_vec_ref'/>
<compound name='quivers' type-name='material_vec_ref'/>
<compound name='backpacks' type-name='material_vec_ref'/>
<compound name='cages' type-name='material_vec_ref'/>
<compound name='wood2' type-name='material_vec_ref' since='v0.34.01'/>
<compound name='rock_metal' type-name='material_vec_ref' since='v0.34.01'/>
<compound name='booze' type-name='material_vec_ref'/>
<compound name='cheese' type-name='material_vec_ref'/>
<compound name='powders' type-name='material_vec_ref'/>
<compound name='extracts' type-name='material_vec_ref'/>
<compound name='meat' type-name='material_vec_ref'/>
</compound>
<stl-vector name='fish_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='fish_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.fish_races[$._key]'/>
<stl-vector name='egg_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='egg_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.egg_races[$._key]'/>
<compound name='plants' type-name='material_vec_ref'/>
<stl-vector name='tree_fruit_plants' type-name='int32_t' ref-target='plant_raw'/>
<stl-vector name='tree_fruit_growths' type-name='int16_t' ref-target='plant_growth' aux-value='$$._parent.tree_fruit_plants[$._key]'/>
<stl-vector name='shrub_fruit_plants' type-name='int32_t' ref-target='plant_raw'/>
<stl-vector name='shrub_fruit_growths' type-name='int16_t' ref-target='plant_growth' aux-value='$$._parent.shrub_fruit_plants[$._key]'/>
<compound name='seeds' type-name='material_vec_ref'/>
<compound name='wood_products' comment='lye, charcoal, potash, pearlash, and coke'>
<stl-vector name='item_type'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector type-name='int16_t' name='item_subtype'/>
<compound name='material' type-name='material_vec_ref'/>
</compound>
<compound name='animals'>
<stl-vector name='pet_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='wagon_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='pack_animal_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='wagon_puller_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='mount_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='minion_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='exotic_pet_races' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='pet_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.pet_races[$._key]'/>
<stl-vector name='wagon_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.wagon_races[$._key]'/>
<stl-vector name='pack_animal_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.pack_animal_races[$._key]'/>
<stl-vector name='wagon_puller_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.wagon_puller_races[$._key]'/>
<stl-vector name='mount_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.mount_races[$._key]'/>
<stl-vector name='minion_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.minion_races[$._key]'/>
<stl-vector name='exotic_pet_castes' type-name='int16_t' ref-target='caste_raw' aux-value='$$._parent.unk728_races[$._key]'/>
</compound>
<stl-vector name='meat_fish_recipes' pointer-type='entity_recipe'/>
<stl-vector name='other_recipes' pointer-type='entity_recipe'/>
<static-array name='unk13' count='3' comment='in 0.23, these were material/matgloss pairs, never used for anything'>
<int16_t name='unk1' init-value='-1'/>
<int32_t name='unk2'/>
</static-array>
<stl-vector name='unk14' pointer-type='item' comment='in 0.23, items that would be equipped by the arriving King, never used'/>
<int16_t name='unk15a' comment='in 0.23, minimum temperature'/>
<int16_t name='unk15b' comment='in 0.23, maximum temperature'/>
<static-array name='ethic' count='22' index-enum='ethic_type'>
<enum base-type='int16_t' type-name='ethic_response'/>
</static-array>
<static-array name='values' type-name='int32_t' count='64' index-enum='value_type'/>
<int32_t since='v0.42.01'/>
<static-array name='permitted_skill' type-name='bool' index-enum='job_skill' count='147'/>
<stl-vector type-name='int16_t' name='art_image_types' comment='0 = civilization symbol'/>
<stl-vector type-name='int32_t' name='art_image_ids'/>
<stl-vector type-name='int16_t' name='art_image_subids'/>
<stl-vector name='color_ref_type'>
<enum type-name='general_ref_type' base-type='int8_t'/>
</stl-vector>
<stl-vector name='foreground_color_curses'>
<enum type-name='curses_color' base-type='int8_t'/>
</stl-vector>
<stl-vector name='foreground_color_curses_bright' type-name='bool'/>
<stl-vector name='background_color_curses'>
<enum type-name='curses_color' base-type='int8_t'/>
</stl-vector>
<stl-vector name='foreground_color' type-name='int16_t' ref-target='descriptor_color' comment="foreground color used for the entity symbol in legends mode and the historical maps."/>
<stl-vector name='background_color' type-name='int16_t' ref-target='descriptor_color' comment="background color used for the entity symbol in legends mode and the historical maps."/>
</compound>
<stl-vector name='uniforms' pointer-type='entity_uniform'/>
<int32_t name='next_uniform_id'/>
<compound name='relations'>
<stl-vector name='known_sites' type-name='int32_t' ref-target='world_site' comment="only civs and site government. Fresh player site government has empty vector"/>
<stl-vector name='deities' type-name='int32_t' ref-target='historical_figure'/>
<stl-vector name='worship' type-name='int32_t' comment="Same length as deities(?). Some kind of relationship strength?"/>
<stl-vector name='belief_systems' type-name='int32_t' ref-target="belief_system" comment="In Religion type entities established by prophets after having developed their own belief system, the ID of this belief system is contained here."/>
<stl-vector name='constructions' comment="only civs. Usually pairs for source/destination, with destination lacking path and construction. Construction and second entry can be lacking when destination lost(construction destroyed as well?). Also seen only source entry">
<pointer>
<compound name='path' type-name='coord2d_path' comment="set only for the first source/destination/construction entry in pairs"/>
<int32_t name='source_site' ref-target='world_site'/>
<int32_t name='destination_site' ref-target='world_site'/>
<stl-vector name='construction' ref-target='construction' type-name='int32_t' comment="set only for the first (source) entry in pairs"/>
<int16_t comment="0 and 1 seen, paired with same value in the next field"/>
<int16_t comment="0 and 1 seen"/>
</pointer>
</stl-vector>
<stl-vector name='diplomacy'> sorted by group_id
<pointer>
<int32_t name='group_id' ref-target='historical_entity'/>
<int16_t name='relation' comment="only 1 and 5 are 'hostile' (from viewscreen_unitlistst::render). Seems to be range 0-5, 2 not seen. 0:neutral/currently not at war, 3:parent->child, 4:child->parent, 1/5 both 'WAR' pre embark"/>
<int32_t name='war_event_collection' ref-target='history_event_collection' comment="always and only with relation = 1/5"/>
<stl-vector name='historic_events' type-name='int32_t' ref-target='history_event'/>
<stl-vector name='historic_events_collection' type-name='int32_t' ref-target='history_event_collection' comment="seen with war_event_collection set"/>
<int32_t comment="0, 1, 4 seen. Non zero seen with relation 0/1"/>
<enum base-type='int32_t' type-name='season' name='tribute_season'/>
</pointer>
</stl-vector>
<int16_t name='unk33' init-value='0' comment="Non zero seen only on site governments (not all) and one nomadic group. Small values"/>
<stl-vector name='unk34a' type-name='int16_t' comment="same length as unk34b and unk34c"/>
<stl-vector name='unk34b' type-name='int16_t'/>
<stl-vector name='unk34c' type-name='int32_t'/>
<stl-vector name='position' type-name='int32_t' comment="position index (not id)"/>
<stl-vector name='official' type-name='int32_t' ref-target='historical_figure' comment="holder of office of corresponding position index"/>
</compound>
<compound name='positions'>
<stl-vector name='own' pointer-type='entity_position'/>
<stl-vector name='site' pointer-type='entity_position'/>
<stl-vector name='conquered_site' pointer-type='entity_position'/>
<int32_t name='next_position_id'/>
<stl-vector name='assignments' pointer-type='entity_position_assignment'/>
<int32_t name='next_assignment_id'/>
<stl-vector name='unk_v40_1' pointer-type='entity_position_assignment' since='v0.40.01'/>
<stl-vector name='unk_v40_2' pointer-type='entity_position_assignment' since='v0.40.01'/>
<stl-vector name='unk_v40_3' pointer-type='entity_position_assignment' since='v0.40.01'/>
<stl-vector name='unk_v40_4' pointer-type='entity_position_assignment' since='v0.40.01'/>
<stl-vector name='unk_v40_5' pointer-type='entity_position_assignment' since='v0.40.01'/>
</compound>
<compound name='tissue_styles'>
<stl-vector name='all' pointer-type='entity_tissue_style'/>
<int32_t name='next_style_id'/>
</compound>
<stl-vector name='squads' type-name='int32_t' ref-target='squad'/>
<compound name='unknown1d' comment='related to founding sites?'>
<int32_t name='year' init-value='-1'/>
<stl-vector name='unk43' type-name='int32_t' comment='empty'/>
<int32_t name='unk44'/>
<int32_t name='unk44a' since='v0.34.01' comment='appears to be a class with a constructor?'/>
<static-array name='unk44b' count='15' type-name='int32_t' since='v0.34.01'/>
</compound>
<pointer name='training_knowledge' since='v0.34.06'>
<stl-vector name="level" index-refers-to='(find-instance $creature_raw $)'>
<enum base-type='int32_t' type-name='training_knowledge_level'/>
</stl-vector>
<stl-vector name="unk_10" index-refers-to='(find-instance $creature_raw $)'>
<int32_t/>
</stl-vector>
</pointer>
<stl-vector name='events' pointer-type='entity_event'/>
<int32_t name='unk_v40_1a' since='v0.40.01'/>
<int32_t name='unk_v40_1b' since='v0.40.01'/>
<int32_t name='unk_v40_1c' since='v0.40.01'/>
<int32_t name='unk_v40_1d' since='v0.40.01'/>
<int32_t name='unk_v40_1e' since='v0.40.01'/>
<stl-vector name='performed_poetic_forms' type-name='int32_t' ref-target='poetic_form' since='v0.42.01'/>
<stl-vector name='performed_musical_forms' type-name='int32_t' ref-target='musical_form' since='v0.42.01'/>
<stl-vector name='performed_dance_forms' type-name='int32_t' ref-target='dance_form' since='v0.42.01'/>
<stl-vector name='major_civ_number' type-name='int32_t' since='v0.42.01' comment="Single item increasing from 0 linearly as major race civs are created, i.e. all civs except cavern and Kobold, but including spire breach released goblin ones"/>
<stl-vector name='major_civ_number_2' type-name='int32_t' since='v0.42.01' comment="Identical to major_civ_number on the same entries. Presumably some properties only major civs have, such as e.g. accepting outsiders as members, engage in conquest, etc."/>
<stl-vector type-name='int32_t' since='v0.42.01' comment="Only on major civs, but not all"/>
<pointer name='occasion_info' type-name='entity_occasion_info' comment="only seen on Civilization, SiteGovernment, and Religion, but not all"/>
<stl-vector name='artifact_claims' pointer-type='artifact_claim' since='v0.44.01' comment='sorted on artifact id'/>
<stl-vector name='honors' pointer-type='honors_type' since='v0.47.01' comment='Only merc companies. Matches #Honors groups in Legends Viewer'/>
<int32_t name='next_honors_index' since='v0.47.01'/>
<int32_t name='equipment_purchases' since='v0.47.01' comment="only seen on military units"/>
<int32_t name='attack' since='v0.47.01' comment="only seen on military units"/>
<int32_t name='total_battles' since='v0.47.01' comment="attacks + defenses. Only seen on military units"/>
<pointer name='unk_v47_1' since='v0.47.01'>
<stl-vector name='unk_v47_1' pointer-type='entity_unk_v47_1'/>
<stl-vector name='foiled_plot_agreements' type-name='int32_t' ref-target='agreement' comment="Mostly a guess. The foiled plot agreement out of 2 appeared here"/>
<stl-vector name='unk_v47_3' type-name='int32_t'/>
<int32_t name='unk_v47_4' comment="0 and 1 seen, but definitely int32"/>
</pointer>
<stl-vector name='divination_sets' type-name='int32_t' since='v0.47.01' comment="Guess. Only on religions, but not all. start at 350 and added sequentially in Religion formation order. Last religion # = last divination set index"/>
<int32_t name='founding_site_government' ref-target='historical_entity' since='v0.47.01' comment="All cases examined refered to site government of site of founding. Perf troop and merc lack site info but seems reasonable."/>
<stl-vector name='meeting_events' pointer-type='meeting_event'/>
<pointer name='activity_stats' type-name='entity_activity_statistics'/>
<compound name='unknown1e'>
<int16_t name='unk47' comment='in 0.23, last communicate season'/>
<int32_t name='unk48' comment='in 0.23, last communicate year'/>
<int32_t name='imports_from'/>
<int32_t name='offerings_from'/>
<int32_t name='offerings_recent' comment='since the last migrant wave or diplomat visit'/>
<static-array name='offerings_history' count='10' type-name='int32_t' comment='rotated yearly at 15th of Timber'/>
<int32_t name='unk49e' comment='in 0.23, hostility level - determined siege size, had a chance to reset to 1'/>
<int32_t name='unk49f' comment='in 0.23, determined siege size'/>
<int32_t since='v0.40.01'/>
<int32_t since='v0.47.01'/>
<int32_t since='v0.47.01'/>
</compound>
<stl-vector name='armies' pointer-type='army' since='v0.40.01'/>
<stl-vector name='army_controllers' pointer-type='army_controller' since='v0.40.01'/>
<stl-vector name='hist_figures' pointer-type='historical_figure'/>
<stl-vector name='nemesis' pointer-type='nemesis_record'/>
<compound name='derived_resources'>
<compound name='mill_cookable' type-name='material_vec_ref'/>
<compound name='mill_dye' type-name='material_vec_ref'/>
<stl-vector name='armor_leather' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='armor_chain' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='armor_plate' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='armor_under' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='armor_over' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='armor_cover' type-name='int16_t' ref-target='itemdef_armorst'/>
<stl-vector name='pants_leather' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='pants_chain' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='pants_plate' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='pants_under' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='pants_over' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='pants_cover' type-name='int16_t' ref-target='itemdef_pantsst'/>
<stl-vector name='helm_leather' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='helm_chain' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='helm_plate' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='helm_under' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='helm_over' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='helm_cover' type-name='int16_t' ref-target='itemdef_helmst'/>
<stl-vector name='shoes_leather' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='shoes_chain' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='shoes_plate' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='shoes_under' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='shoes_over' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='shoes_cover' type-name='int16_t' ref-target='itemdef_shoesst'/>
<stl-vector name='gloves_leather' type-name='int16_t' ref-target='itemdef_glovesst'/>
<stl-vector name='gloves_chain' type-name='int16_t' ref-target='itemdef_glovesst'/>
<stl-vector name='gloves_plate' type-name='int16_t' ref-target='itemdef_glovesst'/>
<stl-vector name='gloves_under' type-name='int16_t' ref-target='itemdef_glovesst'/>
<stl-vector name='gloves_over' type-name='int16_t' ref-target='itemdef_glovesst'/>
<stl-vector name='gloves_cover' type-name='int16_t' ref-target='itemdef_glovesst'/>
</compound>
<static-array name='assignments_by_type' count='42'
index-enum='entity_position_responsibility'>
<stl-vector pointer-type='entity_position_assignment'/>
</static-array>
<compound name='claims'>
<compound name='areas' type-name='coord2d_path'
comment='in world_data.entity_claims1'/>
<compound name='unk1' type-name='coord2d_path'/>
<compound name='border' type-name='coord2d_path'/>
</compound>
<stl-vector name='children' type-name='int32_t' ref-target='historical_entity'
comment='includes self'/>
<compound name='unknown2'>
<int32_t name='metal_proficiency'
comment='best IMPACT_FRACTURE/10000 + MAX_EDGE/1000 for weapon mats plus best IMPACT_FRACTURE/10000 for armor mats'/>
<stl-vector name='weapon_proficiencies' type-name='job_skill'/>
<pointer name='resource_allotment' type-name='resource_allotment_data' comment="Only for SiteGovernment, but not all"/>
<stl-vector since='v0.42.01' pointer-type='poetic_form'/>
<stl-vector since='v0.42.01' pointer-type='musical_form'/>
<stl-vector since='v0.42.01' pointer-type='dance_form'/>
<stl-vector since='v0.42.01' pointer-type='written_content'/>
<int16_t name='unk12a' init-value='-1'/>
<int16_t name='unk12b' comment='uninitialized'/>
<bool name='unk13' comment='0'/>
<pointer name='landmass' type-name='world_landmass'/> -- Civ entities. Nil for sites.
<pointer name='region' type-name='world_region' has-bad-pointers='true'/> -- Civ entities. Non pointers for sites.
<int32_t name='unk16' comment='uninitialized'/>
<int16_t name='unk17' comment='0'/>
<stl-vector name='unk18' type-name='int32_t' comment='used during world gen'/>
<stl-vector name='unk19' type-name='int16_t' comment='used during world gen'/>
<int16_t name='unk20' comment='0'/>
<int32_t name='unk21' comment='0'/>
<int32_t name='unk22' comment='0'/>
<int32_t name='unk23' comment='0'/>
<stl-vector name='unk24' type-name='int32_t' comment='used during world gen'/>
<stl-vector name='unk25' type-name='int32_t' comment='used during world gen'/>
<int32_t name='unk_9C'/>
<int32_t name='unk_A0'/>
<int32_t name='unk_A4'/>
<int32_t name='unk_A8'/>
<int32_t name='unk_AC'/>
<int32_t name='unk_B0'/>
<int32_t name='unk_B4'/>
<int32_t name='unk_B8'/>
<int32_t name='unk_BC'/>
<int32_t name='unk_C0'/>
<int32_t since='v0.47.01'/>?
<int32_t since='v0.47.01'/>?
<int32_t since='v0.47.01'/>?
<static-array name='unk26a' count='38' type-name='int32_t'/>
<static-array name='unk26b' count='38' type-name='int32_t'/>
<static-array name='unk26c' count='38' type-name='int32_t'/>
<static-array name='unk26d' count='38' type-name='int32_t'/>
<static-array name='unk26e' count='15' type-name='int32_t'/>
<stl-vector name='unk28'>
<pointer>
<int32_t/>
<int32_t/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t since='v0.47.01'/>?
<stl-vector name='unk29' since='v0.34.01'>
<pointer>
<int32_t/>
<stl-vector type-name='int32_t'/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t since='v0.47.01'/>
<int32_t since='v0.47.01'/>
<int32_t since='v0.47.01'/>
</compound>
</struct-type>
<struct-type type-name='entity_tissue_style' key-field='id'>
<code-helper name='describe'>$.name</code-helper>
<code-helper name='find-instance'>
(find-by-id $(find-instance $historical_entity $$).tissue_styles.all $id $)
</code-helper>
<stl-string name='name'/>
<stl-vector name='preferred_shapings' type-name='int16_t'/>
<stl-vector type-name='int32_t' comment='maybe probability?'/>
<int32_t name='maintain_length_min'/>
<int32_t name='maintain_length_max'/>
<int32_t name='id'/>
</struct-type>
<enum-type type-name='training_knowledge_level' base-type='int32_t'>
<enum-item name='None'/>
<enum-item name='FewFacts'/>
<enum-item name='GeneralFamiliarity'/>
<enum-item name='Knowledgeable'/>
<enum-item name='Expert'/>
<enum-item name='Domesticated'/>
</enum-type>
<enum-type type-name='entity_position_flags'>
<enum-item name='IS_LAW_MAKER'/>
<enum-item name='ELECTED'/>
<enum-item name='DUTY_BOUND'/>
<enum-item name='MILITARY_SCREEN_ONLY'/>
<enum-item name='GENDER_MALE'/>
<enum-item name='GENDER_FEMALE'/>
<enum-item name='SUCCESSION_BY_HEIR'/>
<enum-item name='HAS_RESPONSIBILITIES'/>
<enum-item name='FLASHES'/>
<enum-item name='BRAG_ON_KILL'/>
<enum-item name='CHAT_WORTHY'/>
<enum-item name='DO_NOT_CULL'/>
<enum-item name='KILL_QUEST'/>
<enum-item name='IS_LEADER'/>
<enum-item name='IS_DIPLOMAT'/>
<enum-item name='EXPORTED_IN_LEGENDS'/>
<enum-item name='DETERMINES_COIN_DESIGN'/>
<enum-item name='ACCOUNT_EXEMPT'/>
<enum-item name='unk_12'/>
<enum-item name='unk_13'/>
<enum-item name='COLOR'/>
<enum-item name='RULES_FROM_LOCATION'/>
<enum-item name='MENIAL_WORK_EXEMPTION'/>
<enum-item name='MENIAL_WORK_EXEMPTION_SPOUSE'/>
<enum-item name='SLEEP_PRETENSION'/>
<enum-item name='PUNISHMENT_EXEMPTION'/>
<enum-item name='unk_1a'/>
<enum-item name='unk_1b'/>
<enum-item name='QUEST_GIVER'/>
<enum-item name='SPECIAL_BURIAL'/>
<enum-item name='REQUIRES_MARKET'/>
<enum-item name='unk_1f'/>
</enum-type>
<struct-type type-name='entity_position' key-field='id'>
<stl-string name='code'/>
<int32_t name='id'/>
<code-helper name='describe'>$.code</code-helper>
<df-flagarray name='flags' index-enum='entity_position_flags'/>
<stl-vector name='allowed_creature' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='allowed_class' pointer-type='stl-string'/>
<stl-vector name='rejected_creature' type-name='int32_t' ref-target='creature_raw'/>
<stl-vector name='rejected_class' pointer-type='stl-string'/>
<static-array type-name='stl-string' name='name' count='2'/>
<static-array type-name='stl-string' name='name_female' count='2'/>
<static-array type-name='stl-string' name='name_male' count='2'/>
<static-array type-name='stl-string' name='spouse' count='2'/>
<static-array type-name='stl-string' name='spouse_female' count='2'/>
<static-array type-name='stl-string' name='spouse_male' count='2'/>
<static-array type-name='stl-string' name='squad' count='2'/>
<stl-string name='land_name'/>
<int16_t name='squad_size'/>
<stl-vector name='commander_id' type-name='int32_t'/>
<stl-vector name='commander_civ' type-name='int32_t' ref-target='historical_entity'/>
<stl-vector name='commander_types' type-name='int16_t'/>
<int16_t name='land_holder'/>
<int16_t name='requires_population'/>
<int16_t since='v0.34.01'/>
<int32_t name='precedence' init-value='30001'/>
<int32_t name='replaced_by' init-value='-1'/>
<int16_t name='number' init-value='1'/>
<stl-vector name='appointed_by' type-name='int32_t'/>
<stl-vector name='appointed_by_civ' type-name='int32_t' ref-target='historical_entity'/>
<stl-vector name='succession_by_position' type-name='int32_t'/>
<static-array type-name='bool' name='responsibilities' count='42' index-enum='entity_position_responsibility'/>
<static-array type-name='int16_t' name='color' count='3'/>
<int32_t name='required_boxes'/>
<int32_t name='required_cabinets'/>
<int32_t name='required_racks'/>
<int32_t name='required_stands'/>
<int32_t name='required_office'/>
<int32_t name='required_bedroom'/>
<int32_t name='required_dining'/>
<int32_t name='required_tomb'/>
<int32_t name='mandate_max'/>
<int32_t name='demand_max'/>
<int32_t init-value='30001' since='v0.47.01'/>
</struct-type>
<struct-type type-name='entity_position_assignment' key-field='id'>
<int32_t name='id'/>
<code-helper name='describe'>
(describe-obj $.position_id.refers-to)
(awhen $.histfig.ref-target
(describe-obj it))
</code-helper>
<int32_t name='histfig' ref-target='historical_figure'/>
<int32_t name='histfig2' ref-target='historical_figure' since='v0.40.01'/>
<int32_t name='position_id'
refers-to='(find-by-id $$._global._parent._global.positions.own $id $)'
comment='position within relevant entity'/>
<df-flagarray name='flags'/>
<int32_t name='squad_id' ref-target='squad'/>
<int32_t init-value='-1'/>
<int32_t init-value='-1'/>
<int32_t init-value='-1' since='v0.40.01'/>
<int32_t init-value='-1' since='v0.40.01'/>
<stl-vector since='v0.40.01' comment='not saved'/>
<int32_t since='v0.47.01' comment='unknown size, not initialized or saved'/>
</struct-type>
<enum-type type-name='entity_material_category' base-type='int16_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Clothing' comment='cloth or leather'/>
<enum-item name='Leather' comment='organic.leather'/>
<enum-item name='Cloth' comment='any cloth'/>
<enum-item name='Wood' comment='organic.wood, used for training weapons'/>
<enum-item name='Crafts' comment='misc_mat.crafts'/>
<enum-item name='Stone' comment='stones'/>
<enum-item name='Improvement' comment='misc_mat.crafts'/>
<enum-item name='Glass' comment='misc_mat.glass_unused, used for extract vials'/>