Skip to content

Commit

Permalink
Merge pull request #618 from ab9rf/process_unit_aux
Browse files Browse the repository at this point in the history
`process_unit_aux`
  • Loading branch information
myk002 committed Jul 13, 2023
2 parents d65199b + f2d7471 commit 19dd3a9
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion df.meeting.xml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@
<vmethod name='removeParticipant'> <int32_t name='histfig'/> <int32_t name='unit'/> <bool/> </vmethod>

<vmethod name='process'>
<int32_t/>
<pointer type-name='process_unit_aux'/>
<pointer type-name='unit' name='unit'/>
</vmethod>
<vmethod ret-type='int32_t' name='checkDrillInvalid'>
Expand Down
25 changes: 25 additions & 0 deletions df.units.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2514,6 +2514,31 @@
<int32_t name='icon'/>
</struct-type>

<struct-type type-name='process_unit_aux'>
<pointer name='unit' type-name='unit'/>
<int32_t/>
<bitfield name='flags' base-type='int32_t'>
<flag-bit name='unk0'/>
<flag-bit/>
<flag-bit name='unk2'/>
</bitfield>
<int32_t/>
<int32_t/>
<int32_t/> could be padding
<static-array name='unitlist' count='200'>
per putnam, this is line of sight data
<pointer type-name='unit'/>
</static-array>
<int32_t/>
<int32_t/> could be padding
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
</struct-type>

</data-definition>

<!--
Expand Down

0 comments on commit 19dd3a9

Please sign in to comment.