-
Notifications
You must be signed in to change notification settings - Fork 81
/
df.plants.xml
112 lines (102 loc) · 4.86 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<data-definition>
<enum-type type-name='plant_type'> bay12: VegType
<enum-attr name='watery' type-name='bool' default-value='false' comment='near surface water feature'/>
<enum-attr name='is_shrub' type-name='bool' default-value='false'/>
<enum-item name='DRY_TREE'>
<item-attr name='watery' value='false'/>
<item-attr name='is_shrub' value='false'/>
</enum-item>
<enum-item name='WET_TREE'>
<item-attr name='watery' value='true'/>
<item-attr name='is_shrub' value='false'/>
</enum-item>
<enum-item name='DRY_PLANT'>
<item-attr name='watery' value='false'/>
<item-attr name='is_shrub' value='true'/>
</enum-item>
<enum-item name='WET_PLANT'>
<item-attr name='watery' value='true'/>
<item-attr name='is_shrub' value='true'/>
</enum-item>
</enum-type>
<struct-type type-name='plant' original-name='vegst' instance-vector='$global.world.plants.all'>
<enum name='type' type-name='plant_type' base-type='int16_t'/>
<int16_t name='material' ref-target='plant_raw'/>
<compound name='pos' type-name='coord'/>
<int32_t name='grow_counter'/>
<bitfield name='damage_flags'> bay12: VEGFLAG_*
<flag-bit name='unused_01'/>
<flag-bit name='season_dead'/>
<flag-bit name='dead'/>
</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='plant_spatter'/>
<pointer name='tree_info' type-name='plant_tree_info' comment='Sapling if NULL'/>
</struct-type>
<enum-type type-name='plant_tree_tile_branches_dir' base-type='uint16_t'> bay12: MULTI_TILE_FLAG_DIR_BRANCH_*
<enum-item name='NONE'/>
<enum-item name='BRANCH_W'/>
<enum-item name='BRANCH_N'/>
<enum-item name='BRANCH_WN'/>
<enum-item name='BRANCH_E'/>
<enum-item name='BRANCH_WE'/>
<enum-item name='BRANCH_NE'/>
<enum-item name='BRANCH_WNE'/>
<enum-item name='BRANCH_S'/>
<enum-item name='BRANCH_WS'/>
<enum-item name='BRANCH_NS'/>
<enum-item name='BRANCH_WNS'/>
<enum-item name='BRANCH_ES'/>
<enum-item name='BRANCH_WES'/>
<enum-item name='BRANCH_NES'/>
</enum-type>
<enum-type type-name='plant_tree_tile_parent_dir' base-type='uint16_t'> bay12: MULTI_TILE_FLAG_PARENT_*
<enum-item name='NONE'/>
<enum-item name='PARENT_IS_N'/>
<enum-item name='PARENT_IS_S'/>
<enum-item name='PARENT_IS_W'/>
<enum-item name='PARENT_IS_E'/>
<enum-item name='PARENT_IS_UP'/>
<enum-item name='PARENT_IS_DOWN'/>
</enum-type>
<bitfield-type type-name='plant_tree_tile' base-type='uint16_t'> bay12: MULTI_TILE_FLAG_*
<flag-bit name='trunk'/>
<flag-bit name='branches_dir' count='4' type-name='plant_tree_tile_branches_dir'/> upper bit apparently also CAP_WALL?
<flag-bit name='branches'/> apparently also CAP_RAMP?
<flag-bit name='leaves'/> apparently also CAP_FLOOR?
<flag-bit name='blocked' comment='e.g. by other tree'/>
<flag-bit name='parent_dir' count='3' type-name='plant_tree_tile_parent_dir'/>
<flag-bit name='trunk_is_thick'/>
</bitfield-type>
<bitfield-type type-name='plant_root_tile' base-type='uint8_t'> bay12: MULTI_TILE_ROOT_FLAG_*
<flag-bit name='regular'/>
<flag-bit count='6' comment='unused'/>
<flag-bit name='blocked'/>
</bitfield-type>
<struct-type type-name='plant_tree_info' original-name='multi_tile_vegst'>
<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='extent_x1' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<pointer name='extent_x2' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<pointer name='extent_y1' type-name='int16_t' is-array='true' comment='dimension body_height'/>
<pointer name='extent_y2' 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_root_tile' is-array='true' comment='dimension dim_x*dim_y'/>
</pointer>
<int32_t name='roots_depth'/>
<int16_t name='local_trunk_height'/>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->