forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.itemimprovements.xml
237 lines (211 loc) · 9.85 KB
/
df.itemimprovements.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<data-definition>
<enum-type type-name='improvement_type'>
<enum-item name="ART_IMAGE"/>
<enum-item name="COVERED"/>
<enum-item name="RINGS_HANGING"/>
<enum-item name="BANDS"/>
<enum-item name="SPIKES"/>
<enum-item name="ITEMSPECIFIC"/>
<enum-item name="THREAD"/>
<enum-item name="CLOTH"/>
<enum-item name="SEWN_IMAGE"/>
<enum-item name="PAGES"/>
<enum-item name="ILLUSTRATION"/>
<enum-item name="INSTRUMENT_PIECE"/>
<enum-item name="WRITING"/>
<enum-item name="IMAGE_SET"/>
</enum-type>
<struct-type type-name='dye_info'>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int32_t name='dyer' ref-target='historical_figure'/>
<enum base-type='int16_t' name='quality' type-name='item_quality'/>
<enum base-type='int16_t' name="skill_rating" type-name='skill_rating'
comment='at the moment of creation'/>
<int32_t/>
</struct-type>
<class-type type-name='itemimprovement' original-name='itemimprovementst'>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index'/>
<int32_t name='maker' ref-target='historical_figure'/>
<int32_t name='masterpiece_event' ref-target='history_event'/>
<enum base-type='int16_t' name='quality' type-name='item_quality'/>
<enum base-type='int32_t' name="skill_rating" type-name='skill_rating'
comment='at the moment of creation'/>
<int32_t name='unk_1'/>
<virtual-methods>
<vmethod name='getImage'><pointer type-name='item'/>
<ret-type><pointer type-name='art_image'/></ret-type>
</vmethod>
<vmethod name='getColorAndShape'>
<pointer name='colors'><stl-vector type-name='int16_t'/></pointer>
<pointer name='shapes'><stl-vector type-name='int16_t'/></pointer>
<pointer/>
</vmethod>
<vmethod name='clone'>
<ret-type><pointer type-name='itemimprovement'/></ret-type>
</vmethod>
<vmethod name='write_file'> <pointer name='file' type-name='file_compressorst'/> </vmethod>
<vmethod name='read_file'>
<pointer name='file' type-name='file_compressorst'/>
<enum name='loadversion' type-name='save_version'/>
</vmethod>
<vmethod ret-type='improvement_type' name='getType'/>
<vmethod ret-type='bool' name='isDecoration'/> excludes thread, cloth, and base-quality instrument pieces
<vmethod is-destructor='true'/>
<vmethod ret-type='int32_t' name='getDyeValue'>
<pointer type-name='caravan_state' name='caravan'/>
</vmethod>
<vmethod name='setShape'>
<int32_t name='shape' ref-target='descriptor_shape'/>
</vmethod>
</virtual-methods>
</class-type>
<class-type type-name='itemimprovement_art_imagest' inherits-from='itemimprovement'>
<compound name='image' type-name='art_image_ref'/>
</class-type>
<class-type type-name='itemimprovement_coveredst' inherits-from='itemimprovement'>
<bitfield name='cover_flags'>
<flag-bit name='glazed'/>
</bitfield>
<int32_t name='shape' ref-target='descriptor_shape'/>
</class-type>
<class-type type-name='itemimprovement_rings_hangingst' inherits-from='itemimprovement'/>
<class-type type-name='itemimprovement_bandsst' inherits-from='itemimprovement'>
<int32_t name='shape' ref-target='descriptor_shape'/>
</class-type>
<class-type type-name='itemimprovement_spikesst' inherits-from='itemimprovement'/>
<enum-type type-name='itemimprovement_specific_type'>
<enum-item name='HANDLE'/>
<enum-item name='ROLLERS'/>
</enum-type>
<class-type type-name='itemimprovement_itemspecificst' inherits-from='itemimprovement'>
<enum base-type='int32_t' type-name='itemimprovement_specific_type' name='type'/>
</class-type>
<class-type type-name='itemimprovement_threadst' inherits-from='itemimprovement'>
<compound name='dye' type-name='dye_info'/>
</class-type>
<class-type type-name='itemimprovement_clothst' inherits-from='itemimprovement'/>
<class-type type-name='itemimprovement_sewn_imagest' inherits-from='itemimprovement'>
<compound name='image' type-name='art_image_ref'/>
<compound name='cloth'>
<int32_t name='unit_id' ref-target='historical_figure'/>
<int16_t name='quality'/>
<int16_t/>
</compound>
<compound name='dye' type-name='dye_info'/>
</class-type>
<class-type type-name='itemimprovement_pagesst' inherits-from='itemimprovement'>
<int32_t name='count'/>
<stl-vector name='contents' type-name='int32_t' ref-target='written_content'/>
</class-type>
<class-type type-name='itemimprovement_illustrationst' inherits-from='itemimprovement'>
<compound name='image' type-name='art_image_ref'/>
<int32_t since='v0.34.01'/>
</class-type>
<class-type type-name='itemimprovement_instrument_piecest' inherits-from='itemimprovement'>
<stl-string/>
</class-type>
<class-type type-name='itemimprovement_writingst' inherits-from='itemimprovement'>
<stl-vector name='contents' type-name='int32_t' ref-target='written_content'/>
</class-type>
<class-type type-name='itemimprovement_image_setst' inherits-from='itemimprovement'>
<int32_t name='image_set_id' init-value='-1' ref-target='image_set'/>
</class-type>
<enum-type type-name='written_content_type' base-type='int32_t'>
<enum-item name='Manual'/>
<enum-item name='Guide'/>
<enum-item name='Chronicle'/>
<enum-item name='ShortStory'/>
<enum-item name='Novel'/>
<enum-item name='Biography'/>
<enum-item name='Autobiography'/>
<enum-item name='Poem'/>
<enum-item name='Play'/>
<enum-item name='Letter'/>
<enum-item name='Essay'/>
<enum-item name='Dialog'/>
<enum-item name='MusicalComposition'/>
<enum-item name='Choreography'/>
<enum-item name='ComparativeBiography'/>
<enum-item name='BiographicalDictionary'/>
<enum-item name='Genealogy'/>
<enum-item name='Encyclopedia'/>
<enum-item name='CulturalHistory'/>
<enum-item name='CulturalComparison'/>
<enum-item name='AlternateHistory'/>
<enum-item name='TreatiseOnTechnologicalEvolution'/>
<enum-item name='Dictionary'/>
<enum-item name='StarChart'/>
<enum-item name='StarCatalogue'/>
<enum-item name='Atlas'/>
</enum-type>
<enum-type type-name='written_content_style' base-type='int32_t'>
<enum-item name='Meandering'/>
<enum-item name='Cheerful'/>
<enum-item name='Depressing'/>
<enum-item name='Rigid'/>
<enum-item name='Serious'/>
<enum-item name='Disjointed'/>
<enum-item name='Ornate'/>
<enum-item name='Forceful'/>
<enum-item name='Humorous'/>
<enum-item name='Immature'/>
<enum-item name='SelfIndulgent'/>
<enum-item name='Touching'/>
<enum-item name='Compassionate'/>
<enum-item name='Vicious'/>
<enum-item name='Concise'/>
<enum-item name='Scornful'/>
<enum-item name='Witty'/>
<enum-item name='Ranting'/>
</enum-type>
<struct-type type-name='written_content' instance-vector='$global.world.written_contents.all' key-field='id'>
<int32_t name='id'/>
<stl-string name='title'/>
<int32_t name='page_start'/>
<int32_t name='page_end'/>
<stl-vector name='refs' pointer-type='general_ref' comment='interactions learned'/>
<stl-vector name='ref_aux' type-name='int32_t' comment='if nonzero, corresponding ref is ignored'/>
<int32_t name='unk1' init-value='-1'/>
<int32_t name='unk2' init-value='-1'/>
<enum type-name='written_content_type' name='type'/>
<int32_t name='poetic_form' since='v0.42.01' ref-target='poetic_form'/>
<stl-vector name='styles' type-name='written_content_style'/>
<stl-vector name='style_strength' type-name='int32_t' comment='0 = maximum, 1 = significant, 2 = partial'/>
<int32_t name='author' ref-target='historical_figure'/>
<int32_t name='author_roll' init-value='-1'/>
</struct-type>
<bitfield-type type-name='engraving_flags' base-type='uint32_t'>
<flag-bit name='floor'/>
<flag-bit name='west'/>
<flag-bit name='east'/>
<flag-bit name='north'/>
<flag-bit name='south'/>
<flag-bit name='hidden'/>
<flag-bit name='northwest'/>
<flag-bit name='northeast'/>
<flag-bit name='southwest'/>
<flag-bit name='southeast'/>
</bitfield-type>
<struct-type type-name='engraving' instance-vector='$global.world.engravings'>
<int32_t name='artist' ref-target='historical_figure'/>
<int32_t name='masterpiece_event' ref-target='history_event'/>
<enum base-type='int32_t' name="skill_rating" type-name='skill_rating'
comment='at the moment of creation'/>
<compound name='pos' type-name='coord'/>
<bitfield name='flags' type-name='engraving_flags'/>
<int8_t name='tile'/>
<int32_t name='art_id' ref-target='art_image_chunk'/>
<int16_t name='art_subid' ref-target='art_image' aux-value='$$.art_id'/>
<enum base-type='int16_t' name='quality' type-name='item_quality'/>
<int32_t name='unk1' init-value='-1' since='v0.34.06'/>
<int32_t name='unk2' init-value='-1' since='v0.34.06'/>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->