forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.refs.xml
663 lines (601 loc) · 31.1 KB
/
df.refs.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
<data-definition>
<enum-type type-name='general_ref_type'>
<enum-item name="ARTIFACT"/>
<enum-item name="IS_ARTIFACT"/>
<enum-item name="NEMESIS"/>
<enum-item name="IS_NEMESIS"/>
<enum-item name="ITEM"/>
<enum-item name="ITEM_TYPE"/>
<enum-item name="COINBATCH"/>
<enum-item name="MAPSQUARE"/>
<enum-item name="ENTITY_ART_IMAGE"/>
<enum-item name="CONTAINS_UNIT"/>
<enum-item name="CONTAINS_ITEM"/>
<enum-item name="CONTAINED_IN_ITEM"/>
<enum-item name="PROJECTILE"/>
<enum-item name="UNIT"/>
<enum-item name="UNIT_MILKEE"/>
<enum-item name="UNIT_TRAINEE"/>
<enum-item name="UNIT_ITEMOWNER"/>
<enum-item name="UNIT_TRADEBRINGER"/>
<enum-item name="UNIT_HOLDER"/>
<enum-item name="UNIT_WORKER"/>
<enum-item name="UNIT_CAGEE"/>
<enum-item name="UNIT_BEATEE"/>
<enum-item name="UNIT_FOODRECEIVER"/>
<enum-item name="UNIT_KIDNAPEE"/>
<enum-item name="UNIT_PATIENT"/>
<enum-item name="UNIT_INFANT"/>
<enum-item name="UNIT_SLAUGHTEREE"/>
<enum-item name="UNIT_SHEAREE"/>
<enum-item name="UNIT_SUCKEE"/>
<enum-item name="UNIT_REPORTEE"/>
<enum-item name="BUILDING"/>
<enum-item name="BUILDING_CIVZONE_ASSIGNED"/>
<enum-item name="BUILDING_TRIGGER"/>
<enum-item name="BUILDING_TRIGGERTARGET"/>
<enum-item name="BUILDING_CHAIN"/>
<enum-item name="BUILDING_CAGED"/>
<enum-item name="BUILDING_HOLDER"/>
<enum-item name="BUILDING_WELL_TAG"/>
<enum-item name="BUILDING_USE_TARGET_1"/>
<enum-item name="BUILDING_USE_TARGET_2"/>
<enum-item name="BUILDING_DESTINATION"/>
<enum-item name="BUILDING_NEST_BOX"/>
<enum-item name="ENTITY"/>
<enum-item name="ENTITY_STOLEN"/>
<enum-item name="ENTITY_OFFERED"/>
<enum-item name="ENTITY_ITEMOWNER"/>
<enum-item name="LOCATION"/>
<enum-item name="INTERACTION"/>
<enum-item name="ABSTRACT_BUILDING"/>
<enum-item name="HISTORICAL_EVENT"/>
<enum-item name="SPHERE"/>
<enum-item name="SITE"/>
<enum-item name="SUBREGION"/>
<enum-item name="FEATURE_LAYER"/>
<enum-item name="HISTORICAL_FIGURE"/>
<enum-item name="ENTITY_POP"/>
<enum-item name="CREATURE"/>
<enum-item name="UNIT_RIDER"/>
<enum-item name="UNIT_CLIMBER"/>
<enum-item name="UNIT_GELDEE"/>
<enum-item name="KNOWLEDGE_SCHOLAR_FLAG"/>
<enum-item name="ACTIVITY_EVENT"/>
<enum-item name="VALUE_LEVEL"/>
<enum-item name="LANGUAGE"/>
<enum-item name="WRITTEN_CONTENT"/>
<enum-item name="POETIC_FORM"/>
<enum-item name="MUSICAL_FORM"/>
<enum-item name="DANCE_FORM"/>
<enum-item name="BUILDING_DISPLAY_FURNITURE"/>
<enum-item name="UNIT_INTERROGATEE"/>
</enum-type>
<class-type type-name='general_ref' original-name='general_refst'>
<virtual-methods>
<vmethod name='write_file'> <pointer name='file' type-name='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer name='file' type-name='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod ret-type='general_ref_type' name='getType'/>
<vmethod name='getItem'>
<ret-type><pointer type-name='item'/></ret-type>
</vmethod>
<vmethod name='getUnit'>
<ret-type><pointer type-name='unit'/></ret-type>
</vmethod>
<vmethod name='getProjectile'>
<ret-type><pointer type-name='projectile'/></ret-type>
</vmethod>
<vmethod name='getBuilding'>
<ret-type><pointer type-name='building'/></ret-type>
</vmethod>
<vmethod name='getEntity'>
<ret-type><pointer type-name='historical_entity'/></ret-type>
</vmethod>
<vmethod name='getArtifact'>
<ret-type><pointer type-name='artifact_record'/></ret-type>
</vmethod>
<vmethod name='getNemesis'>
<ret-type><pointer type-name='nemesis_record'/></ret-type>
</vmethod>
<vmethod name='getEvent'>
<ret-type><pointer type-name='activity_event'/></ret-type>
</vmethod>
<vmethod name='setID'> <int32_t/> </vmethod>
<vmethod ret-type='int32_t' name='getID'/>
<vmethod name='setLocation'>
<int32_t/>
<int32_t/>
<int32_t/>
</vmethod>
<vmethod name='getLocation'>
<pointer type-name='int32_t'/>
<pointer type-name='int32_t'/>
<pointer type-name='int32_t'/>
</vmethod>
<vmethod is-destructor='true'/>
<vmethod name='clone'>
<ret-type><pointer type-name='general_ref'/></ret-type>
</vmethod>
<vmethod>
<int32_t/>
<pointer type-name='stl-string'/>
</vmethod>
<vmethod name='getDescription'>
<pointer name='str' type-name='stl-string'/>
</vmethod>
<vmethod name='getDescription2'>
<pointer name='str' type-name='stl-string'/>
</vmethod>
<vmethod name='getDescription3' comment='for scholar flags'>
<pointer name='str' type-name='stl-string'/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='general_ref_artifact' inherits-from='general_ref'
original-name='general_ref_artifactst'>
<int32_t name='artifact_id' ref-target='artifact_record'/>
</class-type>
<class-type type-name='general_ref_nemesis' inherits-from='general_ref'
original-name='general_ref_nemesisst'>
<int32_t name='nemesis_id' ref-target='nemesis_record'/>
</class-type>
<class-type type-name='general_ref_item' inherits-from='general_ref'
original-name='general_ref_itemst'>
<int32_t name='item_id' ref-target='item'/>
<int32_t name='cached_index' init-value='-1' comment='lookup optimization, tries before binary search'/>
</class-type>
<class-type type-name='general_ref_item_type' inherits-from='general_ref'
original-name='general_ref_item_typest'>
<enum base-type='int32_t' name='type' type-name='item_type'/>
<int32_t name='subtype' refers-to='(item-subtype-target $$._parent.type $)'/>
<int16_t name="mat_type" ref-target='material' aux-value='$$.mat_index'/>
<int16_t name="mat_index" init-value='-1'/>
</class-type>
<class-type type-name='general_ref_coinbatch' inherits-from='general_ref'
original-name='general_ref_coinbatchst'>
<int32_t name='batch'/>
</class-type>
<class-type type-name='general_ref_mapsquare' inherits-from='general_ref'
original-name='general_ref_mapsquarest'>
<enum base-type='int16_t' name='tiletype' type-name='tiletype'/>
<int16_t name="mat_type" ref-target='material' aux-value='$$.mat_index'/>
<int32_t name="mat_index" init-value='-1'/>
</class-type>
<class-type type-name='general_ref_entity_art_image' inherits-from='general_ref'
original-name='general_ref_entity_art_imagest'>
<int32_t name='entity_id' ref-target='historical_entity'/>
<int32_t name='index' comment='lookup in entity.resources.art_image_*'/>
</class-type>
<class-type type-name='general_ref_projectile' inherits-from='general_ref'
original-name='general_ref_projectilest'>
<int32_t name='projectile_id' ref-target='projectile'/>
</class-type>
<class-type type-name='general_ref_unit' inherits-from='general_ref'
original-name='general_ref_unitst'>
<int32_t name='unit_id' ref-target='unit'/>
<int32_t name='cached_index' init-value='-1' comment='lookup optimization, tries before binary search'/>
</class-type>
<class-type type-name='general_ref_building' inherits-from='general_ref'
original-name='general_ref_buildingst'>
<int32_t name='building_id' ref-target='building'/>
</class-type>
<class-type type-name='general_ref_entity' inherits-from='general_ref'
original-name='general_ref_entityst'>
<int32_t name='entity_id' ref-target='historical_entity'/>
</class-type>
<class-type type-name='general_ref_locationst' inherits-from='general_ref'>
<int32_t/>
<int32_t/>
<int32_t/>
</class-type>
<class-type type-name='general_ref_interactionst' inherits-from='general_ref'>
<int32_t name='interaction_id' ref-target='interaction'/>
<int32_t name='source_id' ref-target='interaction_source' aux-value='$$.interaction_id'/>
<int32_t name='unk_08'/>
<int32_t name='unk_0c'/>
</class-type>
<class-type type-name='general_ref_abstract_buildingst' inherits-from='general_ref'>
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='building_id' ref-target='abstract_building' aux-value='$$.site_id'/>
</class-type>
<class-type type-name='general_ref_historical_eventst' inherits-from='general_ref'>
<int32_t name='event_id' ref-target='history_event'/>
</class-type>
<class-type type-name='general_ref_spherest' inherits-from='general_ref'>
<enum base-type='int16_t' name='sphere_type' type-name='sphere_type'/>
</class-type>
<class-type type-name='general_ref_sitest' inherits-from='general_ref'>
<int32_t name='site_id' ref-target='world_site'/>
</class-type>
<class-type type-name='general_ref_subregionst' inherits-from='general_ref'>
<int32_t name='region_id' ref-target='world_region'/>
</class-type>
<class-type type-name='general_ref_feature_layerst' inherits-from='general_ref'>
<int32_t name='underground_region_id' ref-target='world_underground_region'/>
</class-type>
<class-type type-name='general_ref_historical_figurest' inherits-from='general_ref'>
<int32_t name='hist_figure_id' ref-target='historical_figure'/>
</class-type>
<class-type type-name='general_ref_entity_popst' inherits-from='general_ref'>
<int32_t/>
<int32_t name='race' ref-target='creature_raw'/>
<int32_t/>
<bitfield name='flags'>
<flag-bit name='animated_corpse'/>
<flag-bit name='ghostly'/>
</bitfield>
</class-type>
<class-type type-name='general_ref_creaturest' inherits-from='general_ref'>
<int32_t name='race' ref-target='creature_raw'/>
<int32_t name='caste' ref-target='caste_raw' aux-value='$$.race'/>
<int32_t/>
<int32_t/>
<bitfield name='flags'>
<flag-bit name='animated_corpse'/>
<flag-bit name='ghostly'/>
</bitfield>
</class-type>
<class-type type-name='general_ref_knowledge_scholar_flagst' inherits-from='general_ref'>
<compound name='knowledge' type-name='knowledge_scholar_category_flag'/>
</class-type>
<class-type type-name='general_ref_activity_eventst' inherits-from='general_ref'>
<int32_t name='activity_id' ref-target='activity_entry'/>
<int32_t name='event_id'/>
</class-type>
<class-type type-name='general_ref_value_levelst' inherits-from='general_ref'>
<enum name='value' base-type='int32_t' type-name='value_type'/>
<int32_t name='level' comment='see http://dwarffortresswiki.org/index.php/DF2014:Personality_trait'/>
</class-type>
<class-type type-name='general_ref_languagest' inherits-from='general_ref'>
<int32_t/>
</class-type>
<class-type type-name='general_ref_written_contentst' inherits-from='general_ref'>
<int32_t name='written_content_id' ref-target='written_content'/>
</class-type>
<class-type type-name='general_ref_poetic_formst' inherits-from='general_ref'>
<int32_t name='poetic_form_id' ref-target='poetic_form'/>
</class-type>
<class-type type-name='general_ref_musical_formst' inherits-from='general_ref'>
<int32_t name='musical_form_id' ref-target='musical_form'/>
</class-type>
<class-type type-name='general_ref_dance_formst' inherits-from='general_ref'>
<int32_t name='dance_form_id' ref-target='dance_form'/>
</class-type>
<class-type type-name='general_ref_is_artifactst' inherits-from='general_ref_artifact'/>
<class-type type-name='general_ref_is_nemesisst' inherits-from='general_ref_nemesis'/>
<class-type type-name='general_ref_contains_unitst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_contains_itemst' inherits-from='general_ref_item'/>
<class-type type-name='general_ref_contained_in_itemst' inherits-from='general_ref_item'/>
<class-type type-name='general_ref_unit_milkeest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_traineest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_itemownerst' inherits-from='general_ref_unit'>
<bitfield name='flags' since='v0.34.06'>
<flag-bit name='litter'
comment='apparetly set after 1000 ticks, then confiscated in 1000 more ticks'/>
</bitfield>
</class-type>
<class-type type-name='general_ref_unit_tradebringerst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_holderst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_workerst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_cageest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_beateest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_foodreceiverst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_kidnapeest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_patientst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_infantst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_slaughtereest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_sheareest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_suckeest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_reporteest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_riderst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_climberst' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_geldeest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_unit_interrogateest' inherits-from='general_ref_unit'/>
<class-type type-name='general_ref_building_civzone_assignedst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_triggerst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_triggertargetst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_chainst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_cagedst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_holderst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_well_tag' inherits-from='general_ref_building'
original-name='general_ref_building_well_tagst'>
<int8_t name='direction'/>
</class-type>
<class-type type-name='general_ref_building_use_target_1st' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_use_target_2st' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_destinationst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_nest_boxst' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_building_display_furniturest' inherits-from='general_ref_building'/>
<class-type type-name='general_ref_entity_stolenst' inherits-from='general_ref_entity'/>
<class-type type-name='general_ref_entity_offeredst' inherits-from='general_ref_entity'/>
<class-type type-name='general_ref_entity_itemownerst' inherits-from='general_ref_entity'/>
<enum-type type-name='specific_ref_type'>
<enum-item/>
<enum-item name='UNIT_INVENTORY'/>
<enum-item name='JOB'/>
<enum-item name='BUILDING_PARTY'/>
<enum-item name='ACTIVITY'/>
<enum-item name='ITEM_GENERAL'/>
<enum-item name='EFFECT'/>
<enum-item name='PETINFO_PET' comment='unused'/>
<enum-item name='PETINFO_OWNER' comment='unused'/>
<enum-item name='VERMIN_EVENT'/>
<enum-item name='VERMIN_ESCAPED_PET'/>
<enum-item name='ENTITY'/>
<enum-item name='PLOT_INFO'/>
<enum-item name='VIEWSCREEN'/>
<enum-item name='UNIT_ITEM_WRESTLE'/>
<enum-item name='NULL_REF'/>
<enum-item name='HIST_FIG'/>
<enum-item name='SITE'/>
<enum-item name='ARTIFACT'/>
<enum-item name='ITEM_IMPROVEMENT'/>
<enum-item name='COIN_FRONT'/>
<enum-item name='COIN_BACK'/>
<enum-item name='DETAIL_EVENT'/>
<enum-item name='SUBREGION'/>
<enum-item name='FEATURE_LAYER'/>
<enum-item name='ART_IMAGE'/>
<enum-item name='CREATURE_DEF'/>
<enum-item/>
<enum-item/>
<enum-item name='ENTITY_POPULATION'/>
<enum-item name='BREED'/>
</enum-type>
<struct-type type-name='specific_ref'>
<enum name='type' base-type='int32_t' type-name='specific_ref_type'/>
<compound is-union='true'>
<pointer name='object'/>
<pointer name='unit' type-name='unit'/>
<pointer name='activity' type-name='activity_info'/>
<pointer name='screen' type-name='viewscreen'/>
<pointer name='vermin' type-name='vermin'/>
<pointer name='effect' type-name='effect_info'/>
<pointer name='job' type-name='job'/>
</compound>
<compound is-union='true' name='arg2'>
<pointer name='wrestle' type-name='unit_item_wrestle'/>
</compound>
</struct-type>
<enum-type type-name='histfig_entity_link_type'>
<enum-item name='MEMBER'/>
<enum-item name='FORMER_MEMBER'/>
<enum-item name='MERCENARY'/>
<enum-item name='FORMER_MERCENARY'/>
<enum-item name='SLAVE'/>
<enum-item name='FORMER_SLAVE'/>
<enum-item name='PRISONER'/>
<enum-item name='FORMER_PRISONER'/>
<enum-item name='ENEMY'/>
<enum-item name='CRIMINAL'/>
<enum-item name='POSITION'/>
<enum-item name='FORMER_POSITION'/>
<enum-item name='POSITION_CLAIM'/>
<enum-item name='SQUAD'/>
<enum-item name='FORMER_SQUAD'/>
<enum-item name='OCCUPATION'/>
<enum-item name='FORMER_OCCUPATION'/>
</enum-type>
<class-type type-name='histfig_entity_link' original-name='histfig_entity_linkst'>
<int32_t name='entity_id' ref-target='historical_entity'/>
<int16_t name='link_strength'/>
<virtual-methods>
<vmethod ret-type='histfig_entity_link_type' name='getType'/>
<vmethod is-destructor='true'/>
<vmethod name='write_file'> <pointer name='file' type-name='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer name='file' type-name='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod/>
<vmethod/>
<vmethod ret-type='int32_t' name='getPosition'/>
<vmethod ret-type='int32_t' name='getOccupation'/>
<vmethod ret-type='int32_t' name='getPositionStartYear'/>
<vmethod ret-type='int32_t' name='getPositionEndYear'/>
<vmethod name='generate_xml'>
<pointer/>
<pointer/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='histfig_entity_link_memberst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_former_memberst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_mercenaryst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_former_mercenaryst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_slavest' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_former_slavest' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_prisonerst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_former_prisonerst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_enemyst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_criminalst' inherits-from='histfig_entity_link'/>
<class-type type-name='histfig_entity_link_positionst' inherits-from='histfig_entity_link'>
<int32_t name='assignment_id'
refers-to='(find-by-id $$._global.entity_id.ref-target.positions.assignments $id $)'/>
<int32_t name='start_year'/>
</class-type>
<class-type type-name='histfig_entity_link_former_positionst' inherits-from='histfig_entity_link'>
<int32_t name='assignment_id'
refers-to='(find-by-id $$._global.entity_id.ref-target.positions.assignments $id $)'/>
<int32_t name='start_year'/>
<int32_t name='end_year'/>
</class-type>
<class-type type-name='histfig_entity_link_position_claimst' inherits-from='histfig_entity_link'>
<int32_t name='assignment_id'
refers-to='(find-by-id $$._global.entity_id.ref-target.positions.assignments $id $)'/>
<int32_t name='start_year'/>
</class-type>
<class-type type-name='histfig_entity_link_squadst' inherits-from='histfig_entity_link'>
<int32_t name='squad_id'/>
<int32_t name='squad_position'/>
<int32_t name='start_year'/>
</class-type>
<class-type type-name='histfig_entity_link_former_squadst' inherits-from='histfig_entity_link'>
<int32_t name='squad_id'/>
<int32_t name='start_year'/>
<int32_t name='end_year'/>
</class-type>
<class-type type-name='histfig_entity_link_occupationst' inherits-from='histfig_entity_link'>
<int32_t name='occupation_id'/>
<int32_t name='start_year'/>
</class-type>
<class-type type-name='histfig_entity_link_former_occupationst' inherits-from='histfig_entity_link'>
<int32_t name='occupation_id'/>
<int32_t name='start_year'/>
<int32_t name='end_year'/>
</class-type>
<enum-type type-name='histfig_site_link_type'>
<enum-item name='OCCUPATION'/>
<enum-item name='SEAT_OF_POWER'/>
<enum-item name='HANGOUT'/>
<enum-item name='HOME_SITE_ABSTRACT_BUILDING'/>
<enum-item name='HOME_SITE_REALIZATION_BUILDING'/>
<enum-item name='LAIR'/>
<enum-item name='HOME_SITE_REALIZATION_SUL'/>
<enum-item name='HOME_SITE_SAVED_CIVZONE'/>
<enum-item name='PRISON_ABSTRACT_BUILDING'/>
<enum-item name='PRISON_SITE_BUILDING_PROFILE'/>
</enum-type>
<class-type type-name='histfig_site_link' original-name='histfig_site_linkst'>
<int32_t name='site' ref-target='world_site'/>
<int32_t name='sub_id' comment='from XML'/>
<int32_t name='entity' ref-target='historical_entity'/>
<virtual-methods>
<vmethod ret-type='histfig_site_link_type' name='getType'/>
<vmethod is-destructor='true'/>
<vmethod name='write_file'> <pointer name='file' type-name='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer name='file' type-name='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod comment='generate_xml'>
<pointer/>
<pointer/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='histfig_site_link_occupationst' inherits-from='histfig_site_link'>
<int32_t/>
</class-type>
<class-type type-name='histfig_site_link_seat_of_powerst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_hangoutst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_home_site_abstract_buildingst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_home_site_realization_buildingst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_lairst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_home_site_realization_sulst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_home_site_saved_civzonest' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_prison_abstract_buildingst' inherits-from='histfig_site_link'/>
<class-type type-name='histfig_site_link_prison_site_building_profilest' inherits-from='histfig_site_link'/>
<enum-type type-name='histfig_hf_link_type'>
<enum-item name='MOTHER'/>
<enum-item name='FATHER'/>
<enum-item name='SPOUSE'/>
<enum-item name='CHILD'/>
<enum-item name='DEITY'/>
<enum-item name='LOVER'/>
<enum-item name='PRISONER'/>
<enum-item name='IMPRISONER'/>
<enum-item name='MASTER'/>
<enum-item name='APPRENTICE'/>
<enum-item name='COMPANION'/>
<enum-item name='FORMER_MASTER'/>
<enum-item name='FORMER_APPRENTICE'/>
<enum-item name='PET_OWNER'/>
<enum-item name='FORMER_SPOUSE'/>
<enum-item name='DECEASED_SPOUSE'/>
</enum-type>
<class-type type-name='histfig_hf_link' original-name='histfig_hf_linkst'>
<int32_t name='target_hf' ref-target='historical_figure'/>
<int16_t name='link_strength'/>
<virtual-methods>
<vmethod ret-type='histfig_hf_link_type' name='getType'/>
<vmethod is-destructor='true'/>
<vmethod name='write_file'> <pointer name='file' type-name='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer name='file' type-name='file_compressorst'/>
<int32_t name='loadversion'/>
</vmethod>
<vmethod comment='generate_xml'>
<pointer/>
<pointer/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='histfig_hf_link_motherst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_fatherst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_spousest' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_childst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_deityst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_loverst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_prisonerst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_imprisonerst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_masterst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_apprenticest' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_companionst' inherits-from='histfig_hf_link'>
<int32_t/>
<int32_t/>
</class-type>
<class-type type-name='histfig_hf_link_former_apprenticest' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_former_masterst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_pet_ownerst' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_former_spousest' inherits-from='histfig_hf_link'/>
<class-type type-name='histfig_hf_link_deceased_spousest' inherits-from='histfig_hf_link'/>
<enum-type type-name='entity_entity_link_type' base-type='int16_t'>
<enum-item name='PARENT'/>
<enum-item name='CHILD'/>
<enum-item name='RELIGIOUS' comment='Seen between religion and merc company.' since='v0.47.01'/>
</enum-type>
<struct-type type-name='entity_entity_link'>
<enum base-type='int16_t' type-name='entity_entity_link_type' name='type'/>
<int32_t name='target' ref-target='historical_entity'/>
<int16_t name='strength'/>
</struct-type>
<struct-type type-name='entity_site_link'>
<int32_t name="target" ref-target='world_site' comment='world.world_data.sites vector'/>
<int32_t name="entity_id" ref-target='historical_entity'/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<bitfield name='flags' base-type='uint32_t'>
<flag-bit name='residence' comment='site is residence'/>
<flag-bit name='capital' comment='site is capital'/>
<flag-bit name='fortress' comment='used at least by those castles which arent currently in'/>
<flag-bit name='local_market' comment='for villages to think about their market town'/>
<flag-bit name='trade_partner' comment='for markets to think about other markets'/>
<flag-bit name='monument' comment='for a civ to know its tomb sites'/>
<flag-bit name='primary_criminal_gang'/>
<flag-bit name='criminal_gang' />
<flag-bit name='invasion_marked' comment='marked for invasion'/>
<flag-bit name='land_for_holding' comment='all regular sites get this if civ has nobles, whether they have a noble or not'/>
<flag-bit name='central_holding_land' comment='only dwarf fortresses get this for now'/>
<flag-bit name='land_holder_residence' comment='the regular sites where a baron etc. actually lives'/>
<flag-bit name='invasion_push_out' comment='pushed out by invasion'/>
<flag-bit name='reclaim' comment='marked for reclaim'/>
<flag-bit name='occupation_failed' comment='failed to hold hostile occupation'/>
</bitfield>
<int32_t/>
<int32_t name="link_strength" init-value='100'/>
<int32_t/>
<int32_t/>
<stl-vector>
<pointer>
<int32_t init-value='-1'/>
<int32_t/>
</pointer>
</stl-vector>
<int32_t name='target_site_x' comment='target site world coordinate x'/>
<int32_t name='target_site_y' comment='target site world coordinate y'/>
<int32_t name='unk_v43_1' init-value='-1' since='v0.43.01'/>
<int32_t name='unk_v43_2' init-value='-1' since='v0.43.01'/>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->