forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.entities.xml
1338 lines (1213 loc) · 64.8 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 type-name='int32_t' count='10'/>
<int32_t />
</struct-type>
<struct-type type-name='entity_occasion'>
<int32_t name="id"/>
<int32_t />
<int32_t />
<int32_t />
<compound name='name' type-name='language_name'/>
<int32_t />
<int32_t />
<int32_t />
<int32_t name="event"/>
<int32_t />
<stl-vector name='schedule' pointer-type='entity_occasion_schedule' />
<int32_t />
</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"/>
<int32_t name='reference2' comment="item_subtype"/>
<int32_t />
<int32_t />
<int32_t />
<stl-vector name='features' pointer-type='entity_occasion_schedule_feature' />
<int32_t />
<int32_t />
</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'/>
</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/>
<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' comment='Not seen any military rank requiring specific skill(s) apart from any range or melee'>
<int32_t name='index'/>
<bool name='granted_to_everybody' comment='guess'/>
<int32_t name='unk_v47_1'/>
<int32_t name='unk_v47_2'/>
<int32_t name='unk_v47_3'/>
<int32_t name='unk_v47_4'/>
<int32_t name='unk_v47_5'/>
<int32_t name='unk_v47_6'/>
<int32_t name='unk_v47_7'/>
<int32_t name='unk_v47_8'/>
<int32_t name='precedence_awarded'/>
<int16_t name='required_skill' ref-target='job_skill'/>
<int16_t name='unk_v47_9'/>
<int32_t name='unk_v47_10'/>
<int32_t name='required_xp' comment='guess'/>
<int32_t name='unk_v47_11'/>
<int32_t name='required_battles'/>
<int32_t name='unk_v47_12'/>
<int32_t name='unk_v47_13'/>
<stl-vector name='honored' type-name='int32_t' ref-target='hfid'/>
<stl-vector name='unk_v47_14' type-name='int32_t' comment='Non zero for military ranks. Only seen length of 1. The type is most likely wrong, but leaving it out resulted consistent vector lengths of 0'/>
</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='foreign_civ' comment='?'/>
<flag-bit name='named_civ' comment='?'/>
<flag-bit name='unk2'/>
<flag-bit name='unk3'/>
<flag-bit name='unk4' comment='?'/>
<flag-bit name='worshipping'/>
</bitfield>
<stl-vector since='v0.47.01'>
<int32_t/>
<enum name='profession' base-type='uint16_t' type-name='profession'/>
</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='int16_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='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 $)'/>
<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='unknown1b'>
<stl-vector name='unk32a' type-name='int32_t'/>
<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='unk32e'>
<pointer>
<stl-vector type-name='int16_t'/>
<stl-vector type-name='int16_t'/>
<int32_t/>
<int32_t/>
<stl-vector type-name='int32_t'/>
<int16_t/>
<int16_t/>
</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'/> only 1 and 5 are 'hostile' (from viewscreen_unitlistst::render)
<int32_t/>
<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'/>
<int32_t/>
</pointer>
</stl-vector>
<int16_t name='unk33'/>
<stl-vector name='unk34a' type-name='int16_t'/>
<stl-vector name='unk34b' type-name='int16_t'/>
<stl-vector name='unk34c' type-name='int32_t'/>
<stl-vector name='unk34d' type-name='int32_t' comment='empty'/>
<stl-vector name='unk34e' type-name='int32_t' ref-target='historical_figure' comment='empty'/>
</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' type-name='int32_t' since='v0.40.01'/>
<stl-vector name='unk_v40_5' type-name='int32_t' 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'>
<int32_t name='unk42'/>
<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 type-name='int32_t' since='v0.42.01'/>
<stl-vector type-name='int32_t' since='v0.42.01'/>
<stl-vector type-name='int32_t' since='v0.42.01'/>
<stl-vector type-name='int32_t' since='v0.42.01'/>
<stl-vector type-name='int32_t' since='v0.42.01'/>
<stl-vector type-name='int32_t' since='v0.42.01'/>
<pointer name='occasion_info' type-name='entity_occasion_info'/>
<stl-vector since='v0.44.01'/>
<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 since='v0.47.01'/>
<int32_t since='v0.47.01'/>
<int32_t since='v0.47.01'/>
<pointer since='v0.47.01'/>
<stl-vector type-name='int32_t' since='v0.47.01'/>
<int32_t since='v0.47.01'/>
<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='unk49a' comment='in 0.23, imports'/>
<int32_t name='unk49b' comment='in 0.23, exports'/>
<int32_t name='unk49c' comment='in 0.23, recent offerings'/>
<static-array name='unk49d' count='10' type-name='int32_t' comment='in 0.23, offerings history'/>
<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='unk10' type-name='int16_t'/>
<pointer name='resource_allotment' type-name='resource_allotment_data'/>
<stl-vector since='v0.42.01'/>
<stl-vector since='v0.42.01'/>
<stl-vector since='v0.42.01'/>
<stl-vector since='v0.42.01'/>
<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='pointer' comment='empty'/>
<stl-vector name='unk19' type-name='pointer' comment='empty'/>
<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='pointer' comment='empty'/>
<stl-vector name='unk25' type-name='pointer' comment='empty'/>
<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' type-name='pointer' comment='empty'/>
<int32_t since='v0.47.01'/>?
<stl-vector name='unk29' type-name='pointer' since='v0.34.01'/>
<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'/>
<enum-item name='Wood2' comment='misc_mat.barrels, also used for buckets'/>
<enum-item name='Bag' comment='cloth/leather'/>
<enum-item name='Cage' comment='misc_mat.cages'/>
<enum-item name='WeaponMelee' comment='metal.weapon'/>
<enum-item name='WeaponRanged' comment='metal.ranged'/>
<enum-item name='Ammo' comment='metal.ammo'/>
<enum-item name='Ammo2' comment='metal.ammo2'/>
<enum-item name='Pick' comment='metal.pick'/>
<enum-item name='Armor' comment='metal.armor, also used for shields, tools, instruments, and toys'/>
<enum-item name='Gem' comment='gems'/>
<enum-item name='Bone' comment='refuse.bone'/>
<enum-item name='Shell' comment='refuse.shell'/>
<enum-item name='Pearl' comment='refuse.pearl'/>
<enum-item name='Ivory' comment='refuse.ivory'/>
<enum-item name='Horn' comment='refuse.horn'/>
<enum-item name='Other' comment='misc_mat.others'/>
<enum-item name='Anvil' comment='metal.anvil'/>
<enum-item name='Booze' comment='misc_mat.booze'/>
<enum-item name='Metal' comment='metals with ITEMS_HARD, used for chains'/>
<enum-item name='PlantFiber' comment='organic.fiber'/>
<enum-item name='Silk' comment='organic.silk'/>
<enum-item name='Wool' comment='organic.wool'/>
<enum-item name='Furniture' comment='misc_mat.rock_metal'/>
<enum-item name='MiscWood2' comment='misc_mat.wood2'/>
</enum-type>
<struct-type type-name='entity_uniform_item'>
<int8_t name='random_dye'/>
<int8_t name='armorlevel'/>
<int16_t name='item_color' ref-target='descriptor_color'/>
<int32_t name='art_image_id'/>
<int16_t name='art_image_subid'/>
<int16_t name='image_thread_color' ref-target='descriptor_color'/>
<enum base-type='int16_t' name='image_material_class' type-name='entity_material_category'/>
<int16_t name='maker_race'/>
<bitfield name="indiv_choice" type-name='uniform_indiv_choice'/>
<int16_t name="mattype" ref-target='material' aux-value='$$.matindex'/>
<int32_t name="matindex"/>
<enum base-type='int16_t' name="material_class" type-name='entity_material_category'/>
</struct-type>
<struct-type type-name='entity_uniform' key-field='id'>
<int32_t name="id"/>
<int16_t name="unk_4"/>
<code-helper name='describe'>
(describe-obj $.name)
</code-helper>
<static-array name='uniform_item_types' count='7' index-enum='uniform_category'>
<stl-vector>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
</static-array>
<static-array name='uniform_item_subtypes' count='7' index-enum='uniform_category'>
<stl-vector>
<int16_t refers-to='(item-subtype-target $$._parent._parent._parent.uniform_item_types[$$._parent._key][$$._key] $)'/>
</stl-vector>
</static-array>
<static-array name='uniform_item_info' count='7' index-enum='uniform_category'>
<stl-vector pointer-type='entity_uniform_item'/>
</static-array>
<stl-string name="name"/>
<bitfield name='flags' type-name='uniform_flags'/>
</struct-type>
<enum-type type-name='entity_event_type'>
<enum-item name='invasion'/>
<enum-item name='abduction'/>
<enum-item name='incident'/>
<enum-item name='occupation'/>
<enum-item name='beast'/>
<enum-item name='group'/>
<enum-item name='harass'/>
<enum-item name='flee'/>
<enum-item name='abandon'/>
<enum-item name='reclaimed'/>
<enum-item name='founded'/>
<enum-item name='reclaiming'/>
<enum-item name='founding'/>
<enum-item name='leave'/>