Skip to content

Commit

Permalink
Fields involved in operation of beehive buildings.
Browse files Browse the repository at this point in the history
  • Loading branch information
angavrilov committed Aug 22, 2013
1 parent 1331e95 commit 250dc7f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 20 deletions.
20 changes: 11 additions & 9 deletions df.buildings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -913,16 +913,18 @@
<int16_t name='close_timer'/>
</class-type>

<bitfield-type type-name='hive_flags' base-type='uint32_t'>
<flag-bit name='do_install'/>
<flag-bit name='do_gather'/>
<flag-bit name='ready_split'/>
</bitfield-type>

<class-type type-name='building_hivest' inherits-from='building_actual'>
<bitfield name='flags' base-type='int32_t' init-value='3'>
<flag-bit name='do_install'/>
<flag-bit name='do_gather'/>
<flag-bit name='ready_split'/>
</bitfield>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<compound name='hive_flags' type-name='hive_flags'/>
<int32_t name='split_timer' comment='up to 100800'/>
<int32_t name='activity_timer' comment='up to 100800000; checks timer%hive_product.time[i]==0'/>
<int32_t name='install_timer' comment='down from 1200'/>
<int32_t name='gather_timer' comment='down from 1200'/>
</class-type>

<class-type type-name='building_nestst' inherits-from='building_actual'/>
Expand Down
26 changes: 15 additions & 11 deletions df.creature-raws.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,18 +1090,22 @@
comment='for color modifiers, == number of items in their pattern_* vectors'
index-refers-to='$$._parent.modifier_class[$].refers-to'/>

<stl-vector type-name='int32_t' name='hive_product_0'/>
<stl-vector type-name='int32_t' name='hive_product_1'/>
<stl-vector type-name='int16_t' name='hive_product_2'/>
<stl-vector type-name='int16_t' name='hive_product_3'/>
<stl-vector type-name='int16_t' name='hive_product_4'/>
<stl-vector type-name='int32_t' name='hive_product_5'/>

<static-array name='hive_product_tmpstr' count='5'>
<stl-vector>
<pointer type-name='stl-string'/>
<compound name='hive_product'>
<stl-vector type-name='int32_t' name='number'/>
<stl-vector type-name='int32_t' name='time'/>

<stl-vector name='item_type'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
</static-array>
<stl-vector type-name='int16_t' name='item_subtype'/>
<compound name='material' type-name='material_vec_ref'/>

<static-array name='tmpstr' count='5'>
<stl-vector>
<pointer type-name='stl-string'/>
</stl-vector>
</static-array>
</compound>

<int32_t name='next_modifier_id'/>

Expand Down

0 comments on commit 250dc7f

Please sign in to comment.