Skip to content

Commit

Permalink
convert some commented ints into actual enums
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Feb 17, 2020
1 parent bc528c5 commit 24c6060
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
5 changes: 4 additions & 1 deletion df.units.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,10 @@
<compound name='attack'>
<int32_t name='target_unit_id' ref-target='unit'/>
<compound name='unk_4'>
<int32_t name='wrestle_type' comment='0=wrestle, 1=grab'/>
<enum name='wrestle_type' base-type='int32_t'>
<enum-item name='Wrestle'/>
<enum-item name='Grab'/>
</enum>
<int16_t name='unk_4'/>
<int16_t name='unk_6'/>
<int32_t name='unk_8'/>
Expand Down
8 changes: 7 additions & 1 deletion df.viewscreen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,13 @@
<enum base-type='int32_t' type-name='embark_finder_option'/>
</stl-vector>

<int16_t name="finder_state" init-value='-1' comment='0=find, 1=none, 2=partial, 3=suitable'/>
<enum name='finder_state' base-type='int16_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Searching'/>
<enum-item name='NoResult'/>
<enum-item name='Partial'/>
<enum-item name='Suitable'/>
</enum>

<int16_t name="unk_11e"/>
<int16_t name='unk_120'/>
Expand Down
10 changes: 9 additions & 1 deletion df.world.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@
dtor 0x8C1AE10

<int32_t name='id'/>
<int32_t name="subtype" comment='0=combat, 6=performance, others=unidentified'/>
<enum name='subtype' base-type='int32_t'>
<enum-item name='Combat'/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item/>
<enum-item name='Performance'/>
</enum>

<stl-vector name="witnesses" type-name='int32_t' ref-target='unit'/>

Expand Down

0 comments on commit 24c6060

Please sign in to comment.