forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.building-raws.xml
98 lines (78 loc) · 3.38 KB
/
df.building-raws.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
<data-definition>
<class-type type-name='building_def' original-name='building_defst'
instance-vector='$global.world.raws.buildings.all' key-field='id'>
<stl-string name="code"/>
<code-helper name='describe'>$.code</code-helper>
<int32_t name="id"/>
<stl-string name="name"/>
<enum base-type='int32_t' name='building_type' type-name='building_type'/>
<int32_t name='building_subtype'/>
<static-array name='name_color' count='3' type-name='int16_t'/>
<static-array name='tile' count='4'>
<static-array count='31'>
<static-array count='31' type-name='uint8_t'/>
</static-array>
</static-array>
<static-array name='tile_color' count='3'>
<static-array count='4'>
<static-array count='31'>
<static-array count='31' type-name='uint8_t'/>
</static-array>
</static-array>
</static-array>
<static-array name='tile_block' count='31'>
<static-array count='31' type-name='uint8_t'/>
</static-array>
<int32_t name='build_key'/>
<bool name='needs_magma'/>
<stl-vector name="build_items" pointer-type='building_def_item'/>
<int32_t name="dim_x"/>
<int32_t name="dim_y"/>
<int32_t name="workloc_x"/>
<int32_t name="workloc_y"/>
<stl-vector name="build_labors">
<enum base-type='int32_t' type-name='unit_labor'/>
</stl-vector>
<stl-string name="labor_description"/>
<int32_t name="build_stages"/>
<virtual-methods>
<vmethod name='parseRaws'>
<pointer/>
<pointer/>
<pointer/>
<pointer/>
</vmethod>
<vmethod name='categorize' comment='add to world.raws.buildings.whatever'/>
<vmethod name='finalize'/>
<vmethod is-destructor='true'/>
</virtual-methods>
</class-type>
<struct-type type-name='building_def_item'>
<enum base-type='int16_t' name='item_type' type-name='item_type'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int16_t name='mat_index' init-value='-1'/>
<stl-string name='reaction_class'/>
<stl-string name='has_material_reaction_product'/>
<compound name='flags1' type-name='job_item_flags1'/>
<compound name='flags2' type-name='job_item_flags2'/>
<compound name='flags3' type-name='job_item_flags3'/>
<uint32_t name='flags4'/>
<uint32_t name='flags5'/>
<int32_t name='metal_ore' ref-target='inorganic_raw'/>
<int32_t name='min_dimension'/>
<int32_t name='quantity'/>
<enum base-type='int16_t' name='has_tool_use' type-name='tool_uses'/>
<static-array type-name='stl-string' name='item_str' count='2'/>
<static-array type-name='stl-string' name='material_str' count='3'/>
<stl-string name='metal_ore_str'/>
</struct-type>
<class-type type-name='building_def_workshopst' inherits-from='building_def'/>
<class-type type-name='building_def_furnacest' inherits-from='building_def'/>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->