forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.plants.xml
63 lines (56 loc) · 2.55 KB
/
df.plants.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<data-definition>
<bitfield-type type-name='plant_flags' base-type='uint16_t'>
<flag-bit name='watery'/>
<flag-bit name='is_shrub' comment='If it is not a shrub, then it is a tree'/>
</bitfield-type>
<struct-type type-name='plant' instance-vector='$global.world.plants.all'>
<compound type-name='plant_flags' name='flags'/>
<int16_t name='material' ref-target='plant_raw'/>
<compound name='pos' type-name='coord'/>
<int32_t name='grow_counter'/>
<bitfield name='damage_flags'>
<flag-bit name='is_burning'/>
<flag-bit name='is_drowning'/>
<flag-bit/>
</bitfield>
<int32_t name='hitpoints'/>
<int16_t name='update_order'/>
<int32_t name='site_id' ref-target='world_site'/>
<int32_t name='srb_id' ref-target='site_realization_building' aux-value='$$.site_id'/>
<stl-vector name='contaminants' pointer-type='spatter_common'/>
<pointer name='tree_info' type-name='plant_tree_info'/>
</struct-type>
<bitfield-type type-name='plant_tree_tile' base-type='uint8_t'>
<flag-bit name='trunk'/>
<flag-bit name='thick_branches_1'/>
<flag-bit name='thick_branches_2'/>
<flag-bit name='thick_branches_3'/>
<flag-bit name='thick_branches_4'/>
<flag-bit name='branches'/>
<flag-bit name='twigs'/>
<flag-bit name='blocked' comment='e.g. by other tree'/>
</bitfield-type>
<struct-type type-name='plant_tree_info'>
<pointer name='body' is-array='true' comment='dimension body_height'>
<pointer type-name='plant_tree_tile' is-array='true' comment='dimension dim_x*dim_y'/>
</pointer>
<pointer name='unk1' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<pointer name='unk2' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<pointer name='unk3' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<pointer name='unk4' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<int32_t name='body_height'/>
<int32_t name='dim_x'/>
<int32_t name='dim_y'/>
<pointer name='roots' is-array='true' comment='dimension roots_depth'>
<pointer type-name='plant_tree_tile' is-array='true' comment='dimension dim_x*dim_y'/>
</pointer>
<int32_t name='roots_depth'/>
<int16_t name='unk6'/>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->