-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathdf.jobs.xml
777 lines (683 loc) · 34.6 KB
/
df.jobs.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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
<data-definition>
<bitfield-type type-name='job_material_category' base-type='uint32_t'> bay12: JOB_ITEM_FLAG_*
<flag-bit name='plant'/>
<flag-bit name='wood' comment='wood log'/>
<flag-bit name='cloth'/>
<flag-bit name='silk'/>
<flag-bit name='leather'/>
<flag-bit name='bone'/>
<flag-bit name='shell'/>
<flag-bit name='wood2' comment='wood material'/>
<flag-bit name='soap'/>
<flag-bit name='tooth'/>
<flag-bit name='horn'/>
<flag-bit name='pearl'/>
<flag-bit name='yarn'/>
<flag-bit name='strand'/>
</bitfield-type>
<bitfield-type type-name='dfhack_material_category' base-type='uint32_t'>
<comment>
An extended version of job_material_category,
for use in some plugins, like workflow.
</comment>
<!-- The start must be identical to job_material_category -->
<flag-bit name='plant'/>
<flag-bit name='wood'/>
<flag-bit name='cloth'/>
<flag-bit name='silk'/>
<flag-bit name='leather'/>
<flag-bit name='bone'/>
<flag-bit name='shell'/>
<flag-bit name='wood2'/>
<flag-bit name='soap'/>
<flag-bit name='tooth'/>
<flag-bit name='horn'/>
<flag-bit name='pearl'/>
<flag-bit name='yarn'/>
<flag-bit name='strand'/>
<!-- DFHack-specific fields -->
<flag-bit name='metal'/>
<flag-bit name='stone'/>
<flag-bit name='sand'/>
<flag-bit name='glass'/>
<flag-bit name='clay'/>
<flag-bit name='milk'/>
<flag-bit name='gem'/>
</bitfield-type>
<df-linked-list-type type-name='job_list_link' item-type='job'/> bay12: tlink{jobst}
<bitfield-type type-name='job_flags' base-type='uint32_t'> bay12: JOBFLAG_*
<flag-bit name='repeat'/>
<flag-bit name='suspend'/>
<flag-bit name='working' comment='not for food, or store in sp'/>
<flag-bit name='fetching'
comment='Actually going out to bring; corresponds to items->is_fetching'/>
<flag-bit name='special'
comment='bay12: UNITSOURCE: Sleep/Drink/Eat/Clean; cannot be aborted via the ui'/>
<flag-bit name='bringing'>
<comment>
bay12: RETURNING
When actually carrying non-last item to the workshop.
If last, 'working' is used instead.
</comment>
</flag-bit>
<flag-bit name='item_lost' comment='bay12: HITBYDELETION; set when a Hauled item is removed; causes cancel'/>
<flag-bit name='noise' count='2' comment='bay12: SLEEP_DISTURBED; on the sleep job causes thoughts'/>
--
<flag-bit name='by_manager' comment='bay12: QUOTASOURCE'/>
<flag-bit name='store_item' comment='bay12: ITEMSOURCE'/>
<flag-bit name='quality' count='3' comment='bay12: BONUS; set by improvement code'/>
<flag-bit name='non_fluid'/>
<flag-bit name='could_not_find_building_use_1'/>
<flag-bit name='on_break' comment='bay12: COUNTS_AS_BREAK; job displayed as On Break'/>
<flag-bit name='dessource' comment='created from designation'/>
<flag-bit name='do_now' comment='bay12: DO_ME_NOW'/>
</bitfield-type>
<enum-type type-name='job_subtype_surgery' base-type='int32_t'> bay12: JobStageType
<enum-item name='None' value='-1'/>
<enum-item name='Surgery'/>
<enum-item name='StopBleeding'/>
<enum-item name='RepairCompoundFracture'/>
<enum-item name='RemoveRottenTissue'/>
</enum-type>
<struct-type type-name='job_spec_flags' is-union='true' comment='representation of the overloading of job.specflag. Any additions to this union should also be reflected in DFHack::Job::printJobDetails'>
<uint32_t name='whole'/>
<bitfield name='construct_building_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_CONSTRUCT_BUILDING_*
<flag-bit name='SWITCHED_SPOT'/>
</bitfield>
<bitfield name='clean_patient_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_CLEAN_PATIENT_*
<flag-bit name='TRIED_SOAP'/>
</bitfield>
<bitfield name='clean_self_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_CLEAN_SELF_*
<flag-bit name='TRIED_SOAP'/>
</bitfield>
<bitfield name='place_track_vehicle_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_PLACE_TRACK_VEHICLE_*
<flag-bit name='CLEARED_JOBS'/>
</bitfield>
<bitfield name='gather_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_GATHER_*
<flag-bit name='FROM_ZONE'/>
<flag-bit name='PICK_TREES'/>
<flag-bit name='PICK_SHRUBS'/>
<flag-bit name='GATHER_FALLEN'/>
<flag-bit name='NO_LADDER_SEARCH'/>
<flag-bit name='LADDER_RESTRICTED'/>
<flag-bit name='PICK_TREES_GROUND'/>
</bitfield>
<bitfield name='drink_item_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_DRINK_ITEM_*
<flag-bit name='LOOKED_FOR_NEARBY_GOBLET'/>
</bitfield>
<bitfield name='interrogation_flags' base-type='uint32_t'> bay12: JOB_SPEC_FLAG_INTERROGATION_*
<flag-bit name='DID_OFFICE_ATTEMPT'/>
</bitfield>
<bitfield name='weave_cloth_flags' base-type='uint32_t'> bay12: N/A
<flag-bit name='USE_DYED'/>
</bitfield>
<bitfield name='link_building_to_trigger_flags' base-type='uint32_t'> bay12: N/A
<flag-bit name='UNKNOWN'/> no bay12 equivalent in headers; existence -- but not function -- determined by rev eng
</bitfield>
<bitfield name='carve_track_flags' type-name='tile_occupancy'/>
<bitfield name='encrust_flags' type-name='stockpile_group_set'/>
</struct-type>
<struct-type type-name='job_spec_data' is-union='true'>
<int32_t name="hist_figure_id" ref-target='historical_figure'/>
<int32_t name="race" ref-target='creature_raw'/>
<enum base-type='int32_t' name="improvement" type-name='improvement_type'/>
</struct-type>
<struct-type type-name='job' original-name='jobst' df-list-link-type='job_list_link' df-list-link-field='list_link' key-field='id'>
<int32_t name='id' init-value='-1'/>
<pointer name='list_link' type-name='job_list_link'/>
<int32_t name='posting_index' init-value='-1' since='v0.40.20' comment='index into world.job_postings'/>
<enum name='job_type' base-type='int16_t' type-name='job_type'/>
<enum name='job_subtype' type-name='job_subtype_surgery' init-value='None' comment='bay12: stage'/> surgery only ?
<code-helper name='describe'>$.job_type</code-helper>
<compound name='pos' type-name='coord'/>
<int32_t name='completion_timer' init-value='-1' comment='toady: duration; -1 every time unit.counters.job_counter is below 0' />
<int32_t name='maxdur' comment='uninitialized'/>
<bitfield name='flags' type-name='job_flags'/>
<int16_t name='mat_type' ref-target='material' aux-value='$$.mat_index'/>
<int32_t name='mat_index' init-value='-1'/>
<int16_t name='spell' init-value='-1' comment='almost certainly no longer used'/>
<enum name='item_type' type-name='item_type' comment='for Bait Trap jobs; otherwise uninitialized'/>
<int16_t name='item_subtype' init-value='-1' comment='when StoreInStockpile this is a unit_labor'/>
<compound name='specflag' type-name='job_spec_flags'/>
<compound name='specdata' type-name='job_spec_data'/>
<bitfield name='material_category' type-name='job_material_category' comment='bay12: uint32_t job_item_flag'/>
<stl-string name='reaction_name'/>
<int32_t name='expire_timer' comment='toady: haul_timer; for stockpiling, +1 per 50 ticks if no worker; del when 20'/>
<int16_t name='recheck_cntdn' comment='toady: auxilary_counter; for process_jobs'/>
<int32_t name='aux_id' since='v0.34.08'/>
<stl-vector name='items' pointer-type='job_item_ref'/>
<stl-vector name='specific_refs' pointer-type='specific_ref'/>
<stl-vector name='general_refs' pointer-type='general_ref'/>
<compound name='job_items' type-name='job_reqst'/>
<compound name='guide_path' type-name='coord_path' since='v0.34.08'/>
<int32_t name='cur_path_index' since='v0.34.08'/>
<compound name='spec_loc' type-name='coord' since='v0.40.20' comment='toady: spec_x/spec_y/spec_z'/>
<compound name='art_spec' type-name='job_art_specification' since='v0.43.01'/>
<int32_t name='order_id' ref-target='manager_order' init-value='-1' since='v0.43.01'/>
</struct-type>
<struct-type type-name='job_reqst'>
<stl-vector name='elements' pointer-type='job_item'/>
</struct-type>
<struct-type type-name='job_item_ref' original-name='jobitemst'>
<pointer name='item' type-name='item'/>
<enum base-type='int32_t' name='role'> bay12: JobRoleTypes
<enum-item name='Other' comment="MAIN; eat, drink, pickup equipment"/>
<enum-item name='Reagent' comment='MATERIAL'/>
<enum-item name='Hauled' comment='REQUIRED'/>
<enum-item name='LinkToTrigger'/>
<enum-item name='LinkToTarget'/>
<enum-item name='CleanSite'/>
<enum-item name='TargetContainer' comment='NOTAG'/>
<enum-item name='QueuedContainer' comment="INCIDENTAL_HAUL; queued to be put in a container"/>
<enum-item name='PushHaulVehicle' comment="HAULER_ITEM; wheelbarrow"/>
</enum>
<bitfield name='flags' base-type='uint32_t'> bay12: JOBITEMFLAG_*
<flag-bit name='is_fetching'/>
</bitfield>
<int32_t name='job_item_idx'/>
</struct-type>
<bitfield-type type-name='job_item_flags1' base-type='uint32_t'> bay12: ITEMNEEDEDFLAG_*
<flag-bit name='improvable'/>
<flag-bit name="butcherable"/>
<flag-bit name="millable"/>
<flag-bit name="allow_buryable" comment='ALLOW items with flag "dead_dwarf"'/>
<flag-bit name="unrotten" comment='check for item flag "rotten"'/>
<flag-bit name="undisturbed" comment='check for item flag "spider_web"'/>
<flag-bit name="collected" comment='check for item flag "spider_web"'/>
<flag-bit name="sharpenable"/>
<flag-bit name="murdered" comment='check for item flag'/>
<flag-bit comment='unused, formerly distillable'/>
<flag-bit name="empty"/>
<flag-bit name="processable" comment='processable plant, e.g. to thread'/>
<flag-bit comment='unused, formerly is_bag'/>
<flag-bit name="cookable"/>
<flag-bit name="extract_bearing_plant"/>
<flag-bit name="extract_bearing_fish"/>
<flag-bit name="extract_bearing_vermin"/>
<flag-bit name="processable_to_vial"/>
<flag-bit comment='unused, formerly processable_to_bag'/>
<flag-bit name="processable_to_barrel"/>
<flag-bit name="solid"/>
<flag-bit name="tameable_vermin"/>
<flag-bit name="nearby"/>
<flag-bit name="sand_bearing"/>
<flag-bit name="glass" comment='check for material flag IS_GLASS'/>
<flag-bit name="milk" comment='check if material has CHEESE_MAT'/>
<flag-bit name="milkable"/>
<flag-bit name='finished_goods'/>
<flag-bit name='ammo'/>
<flag-bit name='furniture'/>
<flag-bit name='not_bin'/>
<flag-bit name='lye_bearing'/>
</bitfield-type>
<bitfield-type type-name='job_item_flags2' base-type='uint32_t'> bay12: ITEMNEEDEDFLAG2_*
<flag-bit name="dye"/>
<flag-bit name="dyeable"/>
<flag-bit name="dyed"/>
<flag-bit name="sewn_imageless"/>
<flag-bit name="glass_making"/>
<flag-bit name="screw"/>
<flag-bit name="building_material"/>
<flag-bit name="fire_safe"/>
<flag-bit name="magma_safe"/>
<flag-bit name="deep_material" comment='check for inorganic material flag DEEP'/>
<flag-bit name="melt_designated" comment='check for item flag "melt"'/>
<flag-bit name="non_economic"/>
<flag-bit name="allow_melt_dump" comment='CAN_USE_GARBAGE; item can be designated for melting or dumping'/>
<flag-bit name="allow_artifact" comment='item can be artifact'/>
<flag-bit name="plant" comment='check if material is a PLANT_MAT'/>
<flag-bit name="silk" comment='check for material flag SILK'/>
<flag-bit name="leather" comment='check for material flag LEATHER'/>
<flag-bit name="bone" comment='check for material flag BONE'/>
<flag-bit name="shell" comment='check for material flag SHELL'/>
<flag-bit name="totemable"/>
<flag-bit name="horn" comment='check for material flag HORN'/>
<flag-bit name="pearl" comment='check for material flag PEARL'/>
<flag-bit name="plaster_containing"/>
<flag-bit comment='unused'/>
<flag-bit name="soap" comment='check for material flag SOAP'/>
<flag-bit name="body_part" comment='itemtype CORPSE or CORPSEPIECE'/>
<flag-bit name="ivory_tooth" comment='check for material flag TOOTH'/>
<flag-bit name="lye_milk_free"/>
<flag-bit name="blunt"/>
<flag-bit name="unengraved"/>
<flag-bit name="hair_wool" comment='ANY_STRAND_TISSUE'/>
<flag-bit name="yarn" comment='check for material flag YARN'/>
</bitfield-type>
<bitfield-type type-name='job_item_flags3' base-type='uint32_t'> bay12: ITEMNEEDEDFLAG3_*
<flag-bit name="unimproved"/>
<flag-bit name="any_raw_material" comment='itemtype BAR, BOULDER, POWDER_MISC, or GLOB'/>
<flag-bit name="non_absorbent"/>
<flag-bit name="non_pressed"/>
<flag-bit name='allow_liquid_powder'/>
<flag-bit name="any_craft" comment='FIGURINE, AMULET, SCEPTER, CROWN, RING, EARRING, BRACLET'/>
<flag-bit name="hard" comment='check for material flag ITEMS_HARD'/>
<flag-bit name="food_storage"/>
<flag-bit name='metal'/>
<flag-bit name='sand'/>
<flag-bit name='can_use_location_reserved'/>
<flag-bit name='written_on'/>
<flag-bit name='edged'/>
<flag-bit name='on_ground'/>
<flag-bit name='divine'/>
<flag-bit name='crafted_artifact'/>
<flag-bit name='wood'/>
<flag-bit name='stone'/>
<flag-bit name='non_artifact'/>
<flag-bit name='woven'/>
<flag-bit name='gem'/>
<flag-bit name='empty_or_water'/>
<flag-bit name='grown_not_crafted'/>
</bitfield-type>
<struct-type type-name='job_item' original-name='job_req_elementst'>
<enum 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' init-value='-1'/>
<bitfield name='flags1' type-name='job_item_flags1'/>
<int32_t name='quantity' init-value='1'/>
<enum name='vector_id' type-name='job_item_vector_id' init-value='IN_PLAY'/>
<bitfield name='flags2' type-name='job_item_flags2'/>
<bitfield name='flags3' type-name='job_item_flags3'/>
<uint32_t name='flags4'/>
<uint32_t name='flags5'/>
-- Custom:
<int32_t name='metal_ore' ref-target='inorganic_raw'/>
<stl-string name='reaction_class'/>
<stl-string name='has_material_reaction_product'/>
<int32_t name='min_dimension' init-value='-1'/>
<int32_t name='reagent_index' init-value='-1'/>
<stl-vector type-name='int32_t' name='contains' comment='used with custom reactions'/>
<int32_t name='reaction_id' ref-target='reaction'/>
<enum name='has_tool_use' type-name='tool_uses'/>
<bitfield name='job_details_flags' base-type='uint32_t' since='v0.43.01'> bay12: JRE_JOB_DETAILS_FLAG_*
<flag-bit name='have_set_job_details'/>
</bitfield>
<int16_t name='job_details_mat_type' ref-target='material' aux-value='$$.mat_index' since='v0.43.01'/>
<int32_t name='job_details_mat_index' init-value='-1' since='v0.43.01'/>
<bitfield name='job_details_item_flags2' type-name='job_item_flags2' since='v0.43.01'/>
</struct-type>
<struct-type type-name='job_item_filter' original-name='itemsearchst'>
<enum 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' init-value='-1'/>
<bitfield name="flags1" type-name='job_item_flags1'/>
<pointer name="item_vector">
<stl-vector pointer-type='item'/>
</pointer>
<bool name="use_mat_index"/>
<bitfield name="flags2" type-name='job_item_flags2'/>
<bool name="use_flags2"/>
<bitfield name="flags3" type-name='job_item_flags3'/>
<bool name="use_flags3"/>
<uint32_t name='flags4'/>
<bool name="use_flags4"/>
<uint32_t name='flags5'/>
<bool name="use_flags5"/>
<stl-string name='reaction_class'/>
<stl-string name='has_material_reaction_product'/>
<int32_t name="metal_ore" ref-target='inorganic_raw'/>
<bool name="use_metal_ore"/>
<bool name="use_reaction_class"/>
<bool name="use_reaction_product"/>
<int32_t name="min_dimension" init-value='-1'/>
<int32_t name="reaction_id" ref-target='reaction'/>
<stl-vector name='contains' type-name='int32_t'/>
<bool name="use_contains"/>
<enum name='has_tool_use' type-name='tool_uses'/>
<enum name='has_melee_skill' type-name='job_skill' since='v0.34.01'/>
<bool name='can_steal_haul_items' comment='noticed in v0.40.24'/>
<compound name='pos' type-name='coord'/>
<pointer name="unit" type-name='unit'/>
<pointer name="job" type-name='job'/>
<pointer name="building" type-name='building'/>
<pointer name="site" type-name='world_site'/>
<int32_t name='total_dim_count' since='v0.43.05'/>
<stl-vector name='burrows' type-name='int32_t' ref-target='burrow'/>
<bool name="use_burrows"/>
<pointer name='take_from' since='v0.34.08'>
<stl-vector pointer-type='building_stockpilest'/>
</pointer>
</struct-type>
<bitfield-type type-name='manager_order_status' base-type='uint32_t'> bay12: WORKQUOTA_FLAG_*
<flag-bit name="validated"/>
<flag-bit name="active"/>
</bitfield-type>
<enum-type type-name='job_art_specifier_type' base-type='int32_t'> bay12: JobArtSpecifierType
<enum-item name='None' value='-1'/>
<enum-item name='HistoricalFigure'/>
<enum-item name='Site'/>
<enum-item name='Entity'/>
<enum-item name='ArtImage'/>
</enum-type>
<struct-type type-name='job_art_specification' comment='not a real structure'>
<enum name='type' type-name='job_art_specifier_type'/>
<code-helper name='describe'>
(describe-obj $.type)
(describe-obj (or $.subid.refers-to $.id.refers-to))
</code-helper>
<int32_t name='id' init-value='-1'>
<code-helper name='refers-to'>
(case $$._parent.type
($HistoricalFigure (find-instance $historical_figure $))
($Site (find-instance $world_site $))
($Entity (find-instance $historical_entity $))
($ArtImage (find-instance $art_image_chunk $)))
</code-helper>
</int32_t>
<int32_t name='subid' init-value='-1'>
<code-helper name='refers-to'>
(case $$._parent.type
($ArtImage $$._parent.id.refers-to.images[$]))
</code-helper>
</int32_t>
</struct-type>
<struct-type type-name='manager_order' original-name='workquotast'>
<int32_t name='id'/>
<enum name='job_type' base-type='int16_t' type-name='job_type'/>
<enum name='item_type' type-name='item_type' init-value='NONE'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)' init-value='-1'/>
<stl-string name="reaction_name"/>
<int16_t name="mat_type" ref-target='material' aux-value='$$.mat_index'/>
<int32_t name="mat_index" init-value='-1'/>
<compound name='specflag' type-name='job_spec_flags'/>
<compound name='specdata' type-name='job_spec_data'/>
<bitfield name="material_category" type-name='job_material_category'/>
<compound name='art_spec' type-name='job_art_specification'/>
<int16_t name="amount_left" />
<int16_t name="amount_total" />
<bitfield name="status" type-name='manager_order_status'/>
<enum base-type='int32_t' name="frequency"> bay12: WorkQuotaFrequencyType
<enum-item name='OneTime'/>
<enum-item name='Daily'/>
<enum-item name='Monthly'/>
<enum-item name='Seasonally'/>
<enum-item name='Yearly'/>
</enum>
<int32_t name="finished_year" init-value='-1'/>
<int32_t name="finished_year_tick" init-value='-1'/>
<int32_t name="workshop_id" ref-target='building'/>
<int32_t name="max_workshops" comment='0 is unlimited'/>
<stl-vector name="item_conditions" pointer-type='manager_order_condition_item'/>
<stl-vector name='order_conditions' pointer-type='manager_order_condition_order'/>
<pointer name='items' type-name='job_reqst'/>
</struct-type>
<struct-type type-name='manager_order_condition_item' original-name='workquota_item_conditionst'>
<enum base-type='int32_t' name="compare_type"> bay12: LogicConditionType
<enum-item name='AtLeast' comment='GREATER_EQUAL'/>
<enum-item name='AtMost' comment='LESSER_EQUAL'/>
<enum-item name='GreaterThan' comment='GREATER'/>
<enum-item name='LessThan' comment='LESSER'/>
<enum-item name='Exactly' comment='EQUAL'/>
<enum-item name='Not' comment='NOT_EQUAL'/>
</enum>
<int32_t name='compare_val'/>
<enum name='item_type' type-name='item_type' init-value='NONE'/>
<int16_t name='item_subtype' refers-to='(item-subtype-target $$._parent.item_type $)' init-value='-1'/>
<int16_t name="mat_type" ref-target='material' aux-value='$$.mat_index'/>
<int32_t name="mat_index" init-value='-1'/>
<bitfield name='flags1' type-name='job_item_flags1'/>
<bitfield name='flags2' type-name='job_item_flags2'/>
<bitfield name='flags3' type-name='job_item_flags3'/>
<uint32_t name='flags4'/>
<uint32_t name='flags5'/>
<stl-string name='reaction_class'/>
<stl-string name='has_material_reaction_product'/>
<int32_t name='metal_ore' ref-target='inorganic_raw'/>
<int32_t name="min_dimension" init-value='-1'/>
<stl-vector name='contains' type-name='int32_t'/>
<int32_t name="reaction_id" ref-target='reaction'/>
<enum name='has_tool_use' type-name='tool_uses'/>
</struct-type>
<struct-type type-name='manager_order_condition_order' original-name='workquota_order_conditionst'>
<int32_t name='order_id' ref-target='manager_order'/>
<enum base-type='int32_t' name="condition" init-value='Completed'> bay12: WQOrderConditionType
<enum-item name='Activated'/>
<enum-item name='Completed'/>
</enum>
<bitfield name='flags' base-type='uint32_t'> bay12: WQ_ORDER_CONDITION_FLAG_*
<flag-bit name='satisfied'/>
</bitfield>
</struct-type>
<struct-type type-name='manager_order_template' original-name='jminfost'>
<enum name='job_type' base-type='int16_t' type-name='job_type'/>
<stl-string name="reaction_name"/>
<enum name='item_type' type-name='item_type' init-value='NONE'/>
<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"/>
<compound name='specflag' type-name='job_spec_flags'/>
<compound name='specdata' type-name='job_spec_data'/>
<bitfield name="material_category" type-name='job_material_category'/>
<int32_t name='match_value' init-value='1'/>
<stl-string name='name'/>
<stl-string name='compare_str'/>
<bool name='on'/>
</struct-type>
<struct-type type-name='punishmentst'>
<int32_t name='hammerstrikes'/>
<int32_t name='prison_time'/>
<bitfield name='flags' base-type='uint32_t'> bay12: PUNISHMENTFLAG_*
<flag-bit name='beating'/>
<flag-bit name='exiled'/>
<flag-bit name='death_sentence' comment='sentenced to death'/>
<flag-bit name='no_prison_available' comment='would have been imprisoned but for lack of accommodations'/>
</bitfield>
</struct-type>
<struct-type type-name='mandate' original-name='mandatest'>
<pointer name='unit' type-name='unit'/>
<enum name='mode' base-type='int16_t'> bay12: Mandates, no external base type
<enum-item name='Export'/>
<enum-item name='Make'/>
<enum-item name='Guild'/>
</enum>
<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='amount_total'/>
<int16_t name='amount_remaining'/>
<int32_t name='timeout_counter' comment='counts once per 10 frames'/>
<int32_t name='timeout_limit' comment='once counter passes limit, mandate ends'/>
<compound name='punishment' type-name='punishmentst'/>
<int8_t name='punish_multiple' comment='mega_punish, likely dates back to 23a Mining mandates'/>
<bitfield name='flags' base-type='uint32_t'> bay12: MANDATEFLAG_*
<flag-bit name='mandate_total_exempt'/>
</bitfield>
</struct-type>
<struct-type type-name='training_assignment'
instance-vector='$global.plotinfo.training.training_assignments'
key-field='animal_id'
original-name='unit_animal_training_infost'>
<int32_t name="animal_id" ref-target='unit'/>
<int32_t name="trainer_id" ref-target='unit'/>
<bitfield name='flags' base-type='uint32_t'> bay12: UNIT_ANIMAL_TRAINING_INFO_FLAG_*
<flag-bit name='any_trainer'/>
<flag-bit name='any_unassigned_trainer'/>
<flag-bit name='train_war'/>
<flag-bit name='train_hunt'/>
</bitfield>
</struct-type>
<struct-type type-name='unit_demand' original-name='demandst'>
<int16_t name="overtype"/>
<enum base-type='int16_t' name='place'> bay12: DemandRooms
<enum-item name='Office'/>
<enum-item name='Bedroom'/>
<enum-item name='DiningRoom'/>
<enum-item name='Tomb'/>
</enum>
<enum 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" init-value='-1'/>
<int32_t name='timeout_counter' comment='counts once per 10 frames'/>
<int32_t name='timeout_limit' comment='once counter passes limit, mandate ends'/>
</struct-type>
<enum-type type-name='killjob_exception_type' base-type='int16_t'> bay12: KillJobExceptionType
<enum-item name='CANNOT_REACH_SITE'/>
<enum-item name='INTERRUPTED'/>
<enum-item name='MOVED'/>
<enum-item name='NEED_EMPTY_BUCKET'/>
<enum-item name='NEED_EMPTY_TRAP'/>
<enum-item name='NEED_EMPTY_BAG'/>
<enum-item name='NEED_EMPTY_CAGE'/>
<enum-item name='INCAPABLE_OF_CARRYING'/>
<enum-item name='TOO_INJURED'/>
<enum-item name='EXHAUSTED'/>
<enum-item name='ANIMAL_INACCESSIBLE'/>
<enum-item name='ITEM_INACCESSIBLE'/>
<enum-item name='PATIENT_INACCESSIBLE'/>
<enum-item name='INFANT_INACCESSIBLE'/>
<enum-item name='NO_PARTNER'/>
<enum-item name='NOTHING_IN_CAGE'/>
<enum-item name='NOTHING_TO_CAGE'/>
<enum-item name='NOTHING_TO_CATCH'/>
<enum-item name='NO_PATIENT'/>
<enum-item name='PATIENT_NOT_RESTING'/>
<enum-item name='NO_INFANT'/>
<enum-item name='ALREADY_LEADING_CREATURE'/>
<enum-item name='NO_FOOD_AVAILABLE'/>
<enum-item name='NEEDS_SPECIFIC_ITEM'/>
<enum-item name='NO_ITEM'/>
<enum-item name='NO_AMMUNITION'/>
<enum-item name='NO_WEAPON'/>
<enum-item name='WRONG_AMMUNITION'/>
<enum-item name='AMMUNITION_INACCESSIBLE'/>
<enum-item name='ITEM_BLOCKING_SITE'/>
<enum-item name='ANIMAL_NOT_RESTRAINED'/>
<enum-item name='NO_CREATURE'/>
<enum-item name='NO_BUILDING'/>
<enum-item name='INAPPROPRIATE_BUILDING'/>
<enum-item name='NO_DESIGNATED_AREA'/>
<enum-item name='NO_FLOOR_SPACE'/>
<enum-item name='NO_PARTY'/>
<enum-item name='WRONG_JUSTICE_STATE'/>
<enum-item name='NOTHING_IN_BUILDING'/>
<enum-item name='RELIEVED'/>
<enum-item name='WATER_IS_FROZEN'/>
<enum-item name='TOO_INSANE'/>
<enum-item name='TAKEN_BY_MOOD'/>
<enum-item name='WENT_INSANE'/>
<enum-item name='THROWING_TANTRUM'/>
<enum-item name='COULD_NOT_FIND_PATH'/>
<enum-item name='PATH_BLOCKED'/>
<enum-item name='SEEKING_ARTIFACT'/>
<enum-item name='HANDLING_DANGEROUS_CREATURE'/>
<enum-item name='GOING_TO_BED'/>
<enum-item name='SEEKING_INFANT'/>
<enum-item name='DANGEROUS_TERRAIN'/>
<enum-item name='JOB_ITEM_LOST'/>
<enum-item name='GETTING_FOOD'/>
<enum-item name='GETTING_WATER'/>
<enum-item name='HUNTING_VERMIN_FOR_FOOD'/>
<enum-item name='TARGET_INACCESSIBLE'/>
<enum-item name='NO_TARGET'/>
<enum-item name='NO_MECHANISM_FOR_TARGET'/>
<enum-item name='NO_TARGET_BUILDING'/>
<enum-item name='NO_MECHANISM_FOR_TRIGGER'/>
<enum-item name='NO_TRIGGER'/>
<enum-item name='NO_AVAILABLE_TRACTION_BENCH'/>
<enum-item name='ATTACKING_BUILDING'/>
<enum-item name='LOST_PICK'/>
<enum-item name='INVALID_OFFICER'/>
<enum-item name='FAREWELL'/>
<enum-item name='REMOVED_FROM_GUARD'/>
<enum-item name='EQUIPMENT_MISMATCH'/>
<enum-item name='UNCONSCIOUS'/>
<enum-item name='WEBBED'/>
<enum-item name='PARALYZED'/>
<enum-item name='CAGED'/>
<enum-item name='GETTING_DRINK'/>
<enum-item name='USING_WELL'/>
<enum-item name='LOST_AXE'/>
<enum-item name='RESTING_INJURY'/>
<enum-item name='UNSCHEDULED'/>
<enum-item name='FORBIDDEN_AREA'/>
<enum-item name='DROFOFF_INACCESSIBLE'/>
<enum-item name='BUILDING_INACCESSIBLE'/>
<enum-item name='AREA_INACCESSIBLE'/>
<enum-item name='WATER_SOURCE_VANISHED'/>
<enum-item name='NO_WATER_SOURCE'/>
<enum-item name='NO_BUCKET_AT_WELL'/>
<enum-item name='BUCKET_NOT_EMPTY'/>
<enum-item name='WELL_DRY'/>
<enum-item name='BUILDING_SITE_SUBMERGED'/>
<enum-item name='NEED_SAND_COLLECTION_ZONE'/>
<enum-item name='SAND_VANISHED'/>
<enum-item name='AREA_BECAME_INAPPROPRIATE'/>
<enum-item name='WATER_SOURCE_CONTAMINATED'/>
<enum-item name='CREATURE_OCCUPYING_SITE'/>
<enum-item name='NEED_OFFICE'/>
<enum-item name='NOT_RESPONSIBLE_FOR_TRADE'/>
<enum-item name='INAPPROPRIATE_DIG_SQUARE'/>
<enum-item name='TARGET_TOO_INJURED'/>
<enum-item name='GETTING_MARRIED'/>
<enum-item name='NEED_SPLINT'/>
<enum-item name='NEED_THREAD'/>
<enum-item name='NEED_CLOTH'/>
<enum-item name='NEED_CRUTCH'/>
<enum-item name='BAD_SCRIPT_1'/>
<enum-item name='BAD_SCRIPT_2'/>
<enum-item name='BAD_SCRIPT_3'/>
<enum-item name='NEED_CAST_POWDER_BAG'/>
<enum-item name='NO_WEAPON_2'/>
<enum-item name='NO_APPROPRIATE_AMMUNITION'/>
<enum-item name='CLAY_VANISHED'/>
<enum-item name='NEED_CLAY_COLLECTION_ZONE'/>
<enum-item name='NO_COLONY'/>
<enum-item name='REPORTING_CRIME'/>
<enum-item name='NO_WEAPON_FOR_EXECUTION'/>
<enum-item name='NOT_APPOINTED'/>
<enum-item name='TRAINING_MISMATCH'/>
<enum-item name='MORTALLY_AFRAID'/>
<enum-item name='EMOTIONAL_SHOCK'/>
<enum-item name='HORRIFIED'/>
<enum-item name='GRIEVING'/>
<enum-item name='TERRIFIED'/>
<enum-item name='IN_CUSTODY'/>
<enum-item name='TOO_DEPRESSED'/>
<enum-item name='OBLIVIOUS'/>
<enum-item name='CATATONIC'/>
<enum-item name='TOO_SAD'/>
<enum-item name='IN_AGONY'/>
<enum-item name='ANGUISHED'/>
<enum-item name='DESPAIRING'/>
<enum-item name='DISMAYED'/>
<enum-item name='DISTRESSED'/>
<enum-item name='FRIGHTENED'/>
<enum-item name='MISERABLE'/>
<enum-item name='MORTIFIED'/>
<enum-item name='SHAKEN'/>
<enum-item name='IN_EXISTENTIAL_CRISIS'/>
<enum-item name='NEEDS_SPECIFIC_ITEM_LINKED_STOCKPILE'/>
</enum-type>
<struct-type type-name='killjob_exceptionst' comment='not used by DFHack, included for disassembly'>
<enum type-name='killjob_exception_type' name='type'/>
<enum type-name='item_type' name='item_type'/>
<int16_t name='item_subtype'/>
<int16_t name='item_material'/>
<int32_t name='item_matgloss'/>
<bitfield name="item_flag1" type-name='job_item_flags1'/>
<bitfield name="item_flag2" type-name='job_item_flags2'/>
<bitfield name="item_flag3" type-name='job_item_flags3'/>
<uint32_t name='item_flag4'/>
<uint32_t name='item_flag5'/>
<int32_t name='item_number'/>
<int32_t name='id_number'/>
<stl-string name='item_reaction_class'/>
<stl-string name='item_reaction_product_class'/>
<int32_t name='metal_ore'/>
<int32_t name='min_dimension_taken'/>
<stl-vector type-name='int32_t' name='reagent_index'/>
<int32_t name='reaction_index'/>
<enum type-name='tool_uses' name='tool_use'/>
<compound type-name='coord' name='pos'/>
</struct-type>
</data-definition>
<!--
Local Variables:
indent-tabs-mode: nil
nxml-child-indent: 4
End:
-->