|
1 | 1 | <data-definition> |
2 | | - <enum-type type-name='general_ref_type'> |
| 2 | + <enum-type type-name='general_ref_type'> bay12: GeneralRef, no base type |
3 | 3 | <enum-item name='NONE' value='-1'/> |
4 | 4 | <enum-item name="ARTIFACT"/> |
5 | 5 | <enum-item name="IS_ARTIFACT"/> |
|
135 | 135 | </vmethod> |
136 | 136 | <vmethod name='getDescription' comment='bay12: descriptive_string'> |
137 | 137 | <pointer name='str' type-name='stl-string'/> |
| 138 | + <uint32_t name='context_flag'/> |
138 | 139 | </vmethod> |
139 | 140 | <vmethod name='getDescription2' comment='bay12: short_name'> |
140 | 141 | <pointer name='str' type-name='stl-string'/> |
|
177 | 178 |
|
178 | 179 | <class-type type-name='general_ref_mapsquare' inherits-from='general_ref' |
179 | 180 | original-name='general_ref_mapsquarest'> |
180 | | - <enum base-type='int16_t' name='tiletype' type-name='tiletype'/> |
| 181 | + <enum base-type='uint16_t' name='tiletype' type-name='tiletype'/> |
181 | 182 | <int16_t name="mat_type" ref-target='material' aux-value='$$.mat_index'/> |
182 | 183 | <int32_t name="mat_index" init-value='-1'/> |
183 | 184 | </class-type> |
|
217 | 218 |
|
218 | 219 | <class-type type-name='general_ref_interactionst' inherits-from='general_ref'> |
219 | 220 | <int32_t name='interaction_id' ref-target='interaction'/> |
220 | | - <int32_t name='source_id' ref-target='interaction_source' aux-value='$$.interaction_id'/> |
221 | | - <int32_t name='unk_08'/> |
222 | | - <int32_t name='unk_0c'/> |
| 221 | + <int32_t name='source_idx' ref-target='interaction_source' aux-value='$$.interaction_id'/> |
| 222 | + <int32_t name='target_idx' ref-target='interaction_target'/> |
| 223 | + <int32_t name='effect_idx' ref-target='interaction_effect'/> |
223 | 224 | </class-type> |
224 | 225 |
|
225 | 226 | <class-type type-name='general_ref_abstract_buildingst' inherits-from='general_ref'> |
|
232 | 233 | </class-type> |
233 | 234 |
|
234 | 235 | <class-type type-name='general_ref_spherest' inherits-from='general_ref'> |
235 | | - <enum base-type='int16_t' name='sphere_type' type-name='sphere_type'/> |
| 236 | + <enum name='sphere_type' type-name='sphere_type'/> |
236 | 237 | </class-type> |
237 | 238 |
|
238 | 239 | <class-type type-name='general_ref_sitest' inherits-from='general_ref'> |
|
252 | 253 | </class-type> |
253 | 254 |
|
254 | 255 | <class-type type-name='general_ref_entity_popst' inherits-from='general_ref'> |
255 | | - <int32_t name='unk_1'/> |
| 256 | + <int32_t name='pop_id' ref-target='entity_population'/> |
256 | 257 | <int32_t name='race' ref-target='creature_raw'/> |
257 | | - <int32_t name='unk_2'/> |
258 | | - <bitfield name='flags' type-name='undead_flags'/> |
| 258 | + <int32_t name='num'/> |
| 259 | + <bitfield name='flags' type-name='undead_flags'/> bay12: GEN_REF_EPOP_FLAG_* |
259 | 260 | </class-type> |
260 | 261 |
|
261 | 262 | <class-type type-name='general_ref_creaturest' inherits-from='general_ref'> |
262 | 263 | <int32_t name='race' ref-target='creature_raw'/> |
263 | 264 | <int32_t name='caste' ref-target='caste_raw' aux-value='$$.race'/> |
264 | | - <int32_t name='unk_1'/> |
265 | | - <int32_t name='unk_2'/> |
266 | | - <bitfield name='flags' type-name='undead_flags'/> |
| 265 | + <int32_t name='pop_id' ref-target='entity_population'/> |
| 266 | + <int32_t name='num'/> |
| 267 | + <bitfield name='flags' type-name='undead_flags'/> bay12: GEN_REF_CREATURE_FLAG_* |
267 | 268 | </class-type> |
268 | 269 |
|
269 | 270 | <class-type type-name='general_ref_knowledge_scholar_flagst' inherits-from='general_ref'> |
|
276 | 277 | </class-type> |
277 | 278 |
|
278 | 279 | <class-type type-name='general_ref_value_levelst' inherits-from='general_ref'> |
279 | | - <enum name='value' base-type='int32_t' type-name='value_type'/> |
| 280 | + <enum name='value' type-name='value_type'/> |
280 | 281 | <int32_t name='level' comment='see http://dwarffortresswiki.org/index.php/DF2014:Personality_trait'/> |
281 | 282 | </class-type> |
282 | 283 |
|
283 | 284 | <class-type type-name='general_ref_languagest' inherits-from='general_ref'> |
284 | | - <int32_t name='unk_1'/> |
| 285 | + <int32_t name='language_idx'/> |
285 | 286 | </class-type> |
286 | 287 |
|
287 | 288 | <class-type type-name='general_ref_written_contentst' inherits-from='general_ref'> |
|
308 | 309 | <class-type type-name='general_ref_unit_milkeest' inherits-from='general_ref_unit'/> |
309 | 310 | <class-type type-name='general_ref_unit_traineest' inherits-from='general_ref_unit'/> |
310 | 311 | <class-type type-name='general_ref_unit_itemownerst' inherits-from='general_ref_unit'> |
311 | | - <bitfield name='flags' since='v0.34.06'> |
| 312 | + <bitfield name='flags' since='v0.34.06' base-type='uint32_t'> bay12: GENERAL_REF_UNIT_ITEMOWNER_FLAG_* |
312 | 313 | <flag-bit name='litter' |
313 | | - comment='apparetly set after 1000 ticks, then confiscated in 1000 more ticks'/> |
| 314 | + comment='PROBATION; set after 1000 ticks, then confiscated in 1000 more ticks'/> |
314 | 315 | </bitfield> |
315 | 316 | </class-type> |
316 | 317 | <class-type type-name='general_ref_unit_tradebringerst' inherits-from='general_ref_unit'/> |
|
339 | 340 | <class-type type-name='general_ref_building_holderst' inherits-from='general_ref_building'/> |
340 | 341 | <class-type type-name='general_ref_building_well_tag' inherits-from='general_ref_building' |
341 | 342 | original-name='general_ref_building_well_tagst'> |
342 | | - <int8_t name='direction'/> |
| 343 | + <uint8_t name='direction'/> |
343 | 344 | </class-type> |
344 | 345 | <class-type type-name='general_ref_building_use_target_1st' inherits-from='general_ref_building'/> |
345 | 346 | <class-type type-name='general_ref_building_use_target_2st' inherits-from='general_ref_building'/> |
|
350 | 351 | <class-type type-name='general_ref_entity_offeredst' inherits-from='general_ref_entity'/> |
351 | 352 | <class-type type-name='general_ref_entity_itemownerst' inherits-from='general_ref_entity'/> |
352 | 353 |
|
353 | | - <enum-type type-name='specific_ref_type'> Bay12: ReferenceType |
| 354 | + <enum-type type-name='specific_ref_type' base-type='int16_t'> bay12: ReferenceType |
354 | 355 | <enum-attr name='union_field'/> |
355 | 356 |
|
356 | 357 | <enum-item name='NONE' value='-1'/> |
|
425 | 426 | <pointer name='histfig' type-name='historical_figure'/> |
426 | 427 | <pointer name='entity' type-name='historical_entity'/> |
427 | 428 | <compound name='wrestle'> |
428 | | - <pointer name='unk_1'/> |
| 429 | + <pointer name='unit' type-name='unit'/> |
429 | 430 | <pointer name='item' type-name='unit_item_wrestle'/> |
430 | 431 | </compound> |
431 | 432 | </compound> |
432 | 433 | </struct-type> |
433 | 434 |
|
434 | | - <enum-type type-name='histfig_entity_link_type'> |
| 435 | + <enum-type type-name='histfig_entity_link_type' base-type='int16_t'> bay12: HistFigEntityLinkType |
435 | 436 | <enum-item name='MEMBER'/> |
436 | 437 | <enum-item name='FORMER_MEMBER'/> |
437 | 438 | <enum-item name='MERCENARY'/> |
|
465 | 466 | <pointer name='file' type-name='file_compressorst'/> |
466 | 467 | <enum name='loadversion' type-name='save_version'/> |
467 | 468 | </vmethod> |
468 | | - <vmethod/> |
469 | | - <vmethod/> |
| 469 | + <vmethod ret-type='int32_t' name='getSquadId'/> |
| 470 | + <vmethod ret-type='int32_t' name='getSquadPosition'/> |
470 | 471 | <vmethod ret-type='int32_t' name='getPosition'/> |
471 | 472 | <vmethod ret-type='int32_t' name='getOccupation'/> |
472 | 473 | <vmethod ret-type='int32_t' name='getPositionStartYear'/> |
|
506 | 507 | <int32_t name='start_year'/> |
507 | 508 | </class-type> |
508 | 509 | <class-type type-name='histfig_entity_link_squadst' inherits-from='histfig_entity_link'> |
509 | | - <int32_t name='squad_id'/> |
| 510 | + <int32_t name='squad_id' ref-target='squad'/> |
510 | 511 | <int32_t name='squad_position'/> |
511 | 512 | <int32_t name='start_year'/> |
512 | 513 | </class-type> |
513 | 514 | <class-type type-name='histfig_entity_link_former_squadst' inherits-from='histfig_entity_link'> |
514 | | - <int32_t name='squad_id'/> |
| 515 | + <int32_t name='squad_id' ref-target='squad'/> |
515 | 516 | <int32_t name='start_year'/> |
516 | 517 | <int32_t name='end_year'/> |
517 | 518 | </class-type> |
518 | 519 | <class-type type-name='histfig_entity_link_occupationst' inherits-from='histfig_entity_link'> |
519 | | - <int32_t name='occupation_id'/> |
| 520 | + <int32_t name='occupation_id' ref-target='occupation'/> |
520 | 521 | <int32_t name='start_year'/> |
521 | 522 | </class-type> |
522 | 523 | <class-type type-name='histfig_entity_link_former_occupationst' inherits-from='histfig_entity_link'> |
523 | | - <int32_t name='occupation_id'/> |
| 524 | + <int32_t name='occupation_id' ref-target='occupation'/> |
524 | 525 | <int32_t name='start_year'/> |
525 | 526 | <int32_t name='end_year'/> |
526 | 527 | </class-type> |
527 | 528 |
|
528 | | - <enum-type type-name='histfig_site_link_type'> |
| 529 | + <enum-type type-name='histfig_site_link_type' base-type='int16_t'> bay12: HistFigSiteLinkType |
529 | 530 | <enum-item name='OCCUPATION'/> |
530 | 531 | <enum-item name='SEAT_OF_POWER'/> |
531 | 532 | <enum-item name='HANGOUT'/> |
|
558 | 559 | </class-type> |
559 | 560 |
|
560 | 561 | <class-type type-name='histfig_site_link_occupationst' inherits-from='histfig_site_link'> |
561 | | - <int32_t name='unk_1'/> |
| 562 | + <int32_t name='occupation_id' ref-target='occupation'/> |
562 | 563 | </class-type> |
563 | 564 | <class-type type-name='histfig_site_link_seat_of_powerst' inherits-from='histfig_site_link'/> |
564 | 565 | <class-type type-name='histfig_site_link_hangoutst' inherits-from='histfig_site_link'/> |
|
571 | 572 | <class-type type-name='histfig_site_link_prison_site_building_profilest' inherits-from='histfig_site_link'/> |
572 | 573 |
|
573 | 574 |
|
574 | | - <enum-type type-name='histfig_hf_link_type'> |
| 575 | + <enum-type type-name='histfig_hf_link_type' base-type='int16_t'> bay12: HistFigHfLinkType |
575 | 576 | <enum-item name='MOTHER'/> |
576 | 577 | <enum-item name='FATHER'/> |
577 | 578 | <enum-item name='SPOUSE'/> |
|
593 | 594 | <class-type type-name='histfig_hf_link' original-name='histfig_hf_linkst'> |
594 | 595 | <int32_t name='target_hf' ref-target='historical_figure'/> |
595 | 596 | <int16_t name='link_strength'/> |
| 597 | + <int32_t name='hf_vector_idx' init-value='-1' refers-to='$global.world.history.figures[$]'/> |
596 | 598 |
|
597 | 599 | <virtual-methods> |
598 | 600 | <vmethod ret-type='histfig_hf_link_type' name='getType'/> |
|
620 | 622 | <class-type type-name='histfig_hf_link_masterst' inherits-from='histfig_hf_link'/> |
621 | 623 | <class-type type-name='histfig_hf_link_apprenticest' inherits-from='histfig_hf_link'/> |
622 | 624 | <class-type type-name='histfig_hf_link_companionst' inherits-from='histfig_hf_link'> |
623 | | - <int32_t name='unk_1'/> |
624 | | - <int32_t name='unk_2'/> |
| 625 | + <int32_t name='agreement_id'/> |
| 626 | + <int32_t name='agreement_party_id'/> |
625 | 627 | </class-type> |
626 | 628 | <class-type type-name='histfig_hf_link_former_apprenticest' inherits-from='histfig_hf_link'/> |
627 | 629 | <class-type type-name='histfig_hf_link_former_masterst' inherits-from='histfig_hf_link'/> |
628 | 630 | <class-type type-name='histfig_hf_link_pet_ownerst' inherits-from='histfig_hf_link'/> |
629 | 631 | <class-type type-name='histfig_hf_link_former_spousest' inherits-from='histfig_hf_link'/> |
630 | 632 | <class-type type-name='histfig_hf_link_deceased_spousest' inherits-from='histfig_hf_link'/> |
631 | 633 |
|
632 | | - <enum-type type-name='entity_entity_link_type' base-type='int16_t'> |
| 634 | + <enum-type type-name='entity_entity_link_type'> bay12: EntityAssociation, no base type |
633 | 635 | <enum-item name='PARENT'/> |
634 | 636 | <enum-item name='CHILD'/> |
635 | 637 | <enum-item name='RELIGIOUS' comment='Seen between religion and merc company.' since='v0.47.01'/> |
636 | 638 | </enum-type> |
637 | 639 |
|
638 | | - <struct-type type-name='entity_entity_link'> |
| 640 | + <struct-type type-name='entity_entity_link' original-name='entity_associationst'> |
639 | 641 | <enum base-type='int16_t' type-name='entity_entity_link_type' name='type'/> |
640 | 642 | <int32_t name='target' ref-target='historical_entity'/> |
641 | 643 | <int16_t name='strength'/> |
642 | 644 | </struct-type> |
643 | 645 |
|
644 | | - <enum-type type-name='entity_site_link_type' base-type='int32_t' comment="Enum names updated per Putnam"> |
645 | | - Mostly guesswork, hence the 'research notes' below. Interacts highly with status |
646 | | - Putnam has provided us with some source details, so enum names have been amended to match what she provided |
| 646 | + <enum-type type-name='entity_site_link_type' base-type='int32_t'> bay12: EntitySiteProfileLocationType |
647 | 647 | <enum-item name='None' value='-1'/> |
648 | 648 | Probably inactive/failed/NA. Seen with status = 0/2/8/16/128/144/8192. Entities Civilization/SiteGovernment/NomadicGroup/Outcast (not all value/entity permutations) |
649 | 649 | <enum-item name='All'/> |
|
665 | 665 | Guild: All have status = 0 and the capital flag set. |
666 | 666 | </enum-type> |
667 | 667 |
|
668 | | - <bitfield-type type-name='entity_site_link_flags' base-type='uint32_t'> |
| 668 | + <bitfield-type type-name='entity_site_link_flags' base-type='uint32_t'> bay12: ENTITY_SITE_PROFILE_FLAG_* |
669 | 669 | <flag-bit name='residence' comment='site is residence'/> |
670 | 670 | <flag-bit name='capital' comment='site is capital'/> |
671 | 671 | <flag-bit name='fortress' comment='used at least by those castles which arent currently in'/> |
|
685 | 685 | <flag-bit name='holy_city' comment='for the holy city of a religion'/> |
686 | 686 | </bitfield-type> |
687 | 687 |
|
688 | | - <struct-type type-name='entity_site_link'> toady's name for this is entity_site_profilest |
| 688 | + <struct-type type-name='entity_site_link' original-name='entity_site_profilest'> |
689 | 689 | <int32_t name="target" ref-target='world_site'/> this is a union in toady code but we can probably ignore that per putnam |
690 | 690 | <int32_t name="entity_id" ref-target='historical_entity'/> |
691 | 691 | <int32_t name="entity_cache_index" comment="not saved"/> |
692 | 692 | <int32_t name='position_profile_id' init-value='-1' comment="index into entity.positions.assignments of Civilization (?)"/> |
693 | | - <enum name='type' type-name='entity_site_link_type' base-type='int32_t' comment="called location in df source"/> |
| 693 | + <enum name='type' type-name='entity_site_link_type' comment="called location in df source"/> |
694 | 694 | <int32_t name='start_hr' init-value='-1'/> |
695 | 695 | <int32_t name='end_hr' init-value='-1'/> |
696 | 696 | <bitfield name='flags' type-name='entity_site_link_flags'/> |
|
717 | 717 | <int32_t name='last_check_controlling_population' init-value='0' comment="same value as previous field"/> |
718 | 718 | the above are related to army.squads in some way |
719 | 719 | <stl-vector name='ab_profile' comment="When a single element the first value makes sense as an abstract building related to the entity, but longer lists do not, including numbers larger than the number of abstract buildings"> |
720 | | - <pointer> |
| 720 | + <pointer> bay12: entity_site_ab_profilest |
721 | 721 | <int32_t name='unk_1' init-value='-1'/> |
722 | 722 | <int32_t name='unk_2' comment="1, 2, 5 seen"/> |
723 | 723 | </pointer> |
|
728 | 728 | <int32_t name='last_checked_army_year_tick' init-value='-1' since='v0.43.01' comment="paired with the previous field. Could be year/year_tick pair set to the start of play for all of these as all have the same number pair in the same save"/> |
729 | 729 | </struct-type> |
730 | 730 |
|
731 | | - <bitfield-type type-name='undead_flags' base-type='uint16_t'> |
| 731 | + <bitfield-type type-name='undead_flags' base-type='uint16_t'> bay12: HF_KILL_FLAG_*, GEN_REF_EPOP_FLAG_* and GEN_REF_CREATURE_FLAG_* |
732 | 732 | <flag-bit name='zombie'/> |
733 | 733 | <flag-bit name='ghostly'/> |
734 | 734 | </bitfield-type> |
| 735 | + |
735 | 736 | </data-definition> |
736 | 737 |
|
737 | 738 | <!-- |
|
0 commit comments