Skip to content

Commit

Permalink
Merge pull request #692 from Bumber64/patch-4
Browse files Browse the repository at this point in the history
Identify world.status.announcement_alert fields
  • Loading branch information
myk002 authored Dec 27, 2023
2 parents 6e5926e + bbe0474 commit 5bf43ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions df.announcements.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1217,6 +1217,15 @@
<bool name='bright' init-value='true'/>
</struct-type>

<struct-type type-name='announcement_alertst'>
<enum base-type='int32_t' type-name='announcement_alert_type' name='type'/>
<stl-vector name='announcement_id' type-name='int32_t'/>
<stl-vector name='report_unid' type-name='int32_t' comment='unit id'/>
<stl-vector name='report_unit_announcement_category'>
<enum type-name='unit_report_type'/>
</stl-vector>
</struct-type>

<struct-type type-name='announcement_infost' comment='allocated on the stack, included in df-structures to assist with disassembly'>
<enum base-type='int16_t' type-name='announcement_type' name='type'/>
<int16_t name='color'/>
Expand Down
2 changes: 1 addition & 1 deletion df.units.xml
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@
comment='Seems to be used as default when not flags1.tame'/>
</enum-type>

<enum-type type-name='unit_report_type' base-type='int16_t'>
<enum-type type-name='unit_report_type' base-type='int16_t' comment='(UnitAnnouncementCategory)'>
<enum-item name='Combat'/>
<enum-item name='Sparring'/>
<enum-item name='Hunting'/>
Expand Down
4 changes: 2 additions & 2 deletions df.world.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1069,8 +1069,8 @@
<stl-vector name='mission_reports' pointer-type='mission_report'/>
<stl-vector name='spoils_reports' pointer-type='spoils_report' since='v0.44.06'/>
<stl-vector name='interrogation_reports' pointer-type='interrogation_report' since='v0.47.01'/>
<stl-vector name='announcement_alert'/>
<stl-vector name='alert_button_announcement_id'/>
<stl-vector name='announcement_alert' pointer-type='announcement_alertst'/>
<stl-vector name='alert_button_announcement_id' type-name='int32_t' comment='entries are report ids'/>
<int32_t name='display_timer'/>

<compound name='slots'>
Expand Down

0 comments on commit 5bf43ce

Please sign in to comment.