forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.reaction-raws.xml
203 lines (163 loc) · 7.68 KB
/
df.reaction-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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<data-definition>
<enum-type type-name='reaction_flags'>
<enum-item name='FUEL'/>
<enum-item name='AUTOMATIC'/>
<enum-item name='ADVENTURE_MODE_ENABLED'/>
</enum-type>
<struct-type type-name='reaction'
instance-vector='$global.world.raws.reactions'>
<stl-string name="code"/>
<stl-string name="name"/>
<code-helper name='describe'>$.code</code-helper>
<df-flagarray name='flags' index-enum='reaction_flags'/>
<stl-vector name="reagents" pointer-type='reaction_reagent'/>
<stl-vector name="products" pointer-type='reaction_product'/>
<enum base-type='int16_t' name='skill' type-name='job_skill'/>
<compound name='building'>
<static-array name='str' count='2'>
<stl-vector pointer-type='stl-string'/>
</static-array>
<stl-vector name='type'>
<enum base-type='int32_t' type-name='building_type'/>
</stl-vector>
<stl-vector type-name='int32_t' name='subtype'/>
<stl-vector type-name='int32_t' name='custom'/>
<stl-vector type-name='int32_t' name='hotkey'/>
</compound>
<int32_t name="index"/>
</struct-type>
<enum-type type-name='reaction_reagent_type'>
<enum-item name='item'/>
</enum-type>
<class-type type-name='reaction_reagent' original-name='reaction_reagentst'>
<stl-string name="code"/>
<code-helper name='describe'>$.code</code-helper>
<int32_t name='quantity'/>
<compound name="flags" type-name='reaction_reagent_flags'/>
<virtual-methods>
<vmethod ret-type='reaction_reagent_type' name='getType'/>
<vmethod><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod is-destructor='true'/>
<vmethod name='resolveTokens'>
<int32_t name='reactionID'/>
</vmethod>
<vmethod><int32_t/><int32_t/><int32_t/></vmethod>
<vmethod ret-type='bool' name='matchesRoot'>
<pointer type-name='item'/>
<int32_t name='index' ref-target='reaction'/>
</vmethod>
<vmethod ret-type='bool' name='matchesChild'>
<pointer type-name='item'/>
<pointer type-name='reaction' comment='or maybe reaction code string ref'/>
<int32_t name='index' ref-target='reaction'/>
</vmethod>
<vmethod name='getDescription'>
<pointer type-name='stl-string'/>
<int32_t name='index' ref-target='reaction'/>
</vmethod>
<vmethod ret-type='bool' name='isLyeBearing'/>
</virtual-methods>
</class-type>
<bitfield-type type-name='reaction_reagent_flags'>
<flag-bit name='PRESERVE_REAGENT'/>
<flag-bit name='IN_CONTAINER'/>
<flag-bit name='DOES_NOT_DETERMINE_PRODUCT_AMOUNT'/>
</bitfield-type>
<class-type type-name='reaction_reagent_itemst' inherits-from='reaction_reagent'>
<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'/>
<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'/>
<stl-vector type-name='int32_t' name='contains'/>
<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'/>
<stl-vector name='contains_str' pointer-type='stl-string'/>
</class-type>
<enum-type type-name='reaction_product_type'>
<enum-item name='item'/>
<enum-item name='improvement'/>
</enum-type>
<class-type type-name='reaction_product' original-name='reaction_productst'>
<virtual-methods>
<vmethod ret-type='reaction_product_type' name='getType'/>
<vmethod name='resolveTokens'>
<int32_t name='reactionID'/>
</vmethod>
<vmethod name='produce'>
<pointer type-name='unit'/>
<pointer name='out_items'><stl-vector pointer-type='item'/></pointer>
<pointer name='in_reag'><stl-vector pointer-type='reaction_reagent'/></pointer>
<pointer name='in_items'><stl-vector pointer-type='item'/></pointer>
<int32_t name='quantity'/>
<enum type-name='job_skill' base-type='int16_t'/>
<pointer type-name='historical_entity'/>
<pointer type-name='world_site'/>
</vmethod>
<vmethod name='getDescription' comment='used in Adventurer mode reactions?'>
<pointer type-name='stl-string' name='desc'/>
</vmethod>
<vmethod is-destructor='true'/>
</virtual-methods>
</class-type>
<enum-type type-name='reaction_product_item_flags'>
<enum-item name='GET_MATERIAL_SAME'/>
<enum-item name='GET_MATERIAL_PRODUCT'/>
<enum-item name='FORCE_EDGE'/>
<enum-item name='PASTE'/>
<enum-item name='PRESSED'/>
<enum-item name='CRAFTS'/>
</enum-type>
<class-type type-name='reaction_product_itemst' inherits-from='reaction_product'>
<stl-string name="product_to_container"/>
<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'/>
<int32_t name='mat_index'/>
<int16_t name='probability'/>
<int16_t name='count'/>
<int32_t name='product_dimension'/>
<df-flagarray name='flags' index-enum='reaction_product_item_flags'/>
<compound name='get_material'>
<stl-string name='reagent_code'/>
<stl-string name='product_code'/>
</compound>
<static-array type-name='stl-string' name='item_str' count='2'/>
<static-array type-name='stl-string' name='material_str' count='3'/>
</class-type>
<enum-type type-name='reaction_product_improvement_flags'>
<enum-item name='GET_MATERIAL_SAME'/>
<enum-item name='GET_MATERIAL_PRODUCT'/>
<enum-item name='GLAZED'/>
</enum-type>
<class-type type-name='reaction_product_item_improvementst' inherits-from='reaction_product'>
<stl-string/>
<stl-string name="target_reagent"/>
<enum base-type='int32_t' name='improvement_type' type-name='improvement_type'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int16_t name='probability'/>
<df-flagarray name='flags' index-enum='reaction_product_improvement_flags'/>
<compound name='get_material'>
<stl-string name='reagent_code'/>
<stl-string name='product_code'/>
</compound>
<static-array type-name='stl-string' name='material_str' count='3'/>
</class-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->