forked from DFHack/df-structures
-
Notifications
You must be signed in to change notification settings - Fork 0
/
df.viewscreen.xml
3409 lines (3155 loc) · 145 KB
/
df.viewscreen.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
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<data-definition>
<struct-type type-name='file_compressorst' custom-methods='true'>
Note: the assign operator is manually implemented
<bool name='compressed'/>
<stl-fstream name='f'/>
<pointer name='in_buffer' type-name='uint8_t' is-array='true'/>
<long name='in_buffersize'/>
<long name='in_buffer_amount_loaded'/>
<long name='in_buffer_position'/>
<pointer name='out_buffer' type-name='uint8_t' is-array='true'/>
<long name='out_buffersize'/>
<int32_t name='out_buffer_amount_written'/>
</struct-type>
<enum-type type-name='interface_breakdown_types' base-type='int8_t'>
<enum-item name='NONE'/>
<enum-item name='QUIT'/>
<enum-item name='STOPSCREEN'/>
<enum-item name='TOFIRST'/>
</enum-type>
<enum-type type-name='interface_push_types'>
<enum-item name='AS_PARENT'/>
<enum-item name='AS_CHILD'/>
<enum-item name='AT_BACK'/>
<enum-item name='AT_FRONT'/>
</enum-type>
<class-type type-name='viewscreen' original-name='viewscreenst' custom-methods='true'>
<pointer name='child' type-name='viewscreen'/>
<pointer name='parent' type-name='viewscreen'/>
<enum base-type='int8_t' name='breakdown_level' type-name='interface_breakdown_types' init-value='NONE'/>
<int8_t name='option_key_pressed'/>
<virtual-methods>
<vmethod name='feed'>
<pointer name='events'> <stl-set>
<enum type-name='interface_key' base-type='long'/>
</stl-set> </pointer>
</vmethod>
<vmethod name='logic'/>
<vmethod name='render'/>
<vmethod name='resize'> <int32_t name='w'/> <int32_t name='h'/> </vmethod>
<vmethod name='help'/>
<vmethod ret-type='int8_t' name='movies_okay'/>
<vmethod ret-type='int8_t' name='is_option_screen'/>
<vmethod ret-type='int8_t' name='is_save_screen'/>
<vmethod is-destructor='true'/>
<vmethod ret-type='bool' name='key_conflict'>
<enum type-name='interface_key' base-type='long'/>
</vmethod>
</virtual-methods>
<custom-methods>
<cmethod name='feed_key'/>
</custom-methods>
</class-type>
<class-type type-name='viewscreen_layer' original-name='viewscreen_layerst' inherits-from='viewscreen'>
<stl-vector pointer-type="layer_object" name="layer_objects"/>
</class-type>
<struct-type type-name='interfacest'>
<int32_t name='original_fps'/>
<compound name='view' type-name='viewscreen'/>
<uint32_t name='flag'/>
<int32_t name='shutdown_interface_tickcount'/>
<int32_t name='shutdown_interface_for_ms'/>
<int8_t name='supermovie_on'/>
<int32_t name='supermovie_pos'/>
<int32_t name='supermovie_delayrate'/>
<int32_t name='supermovie_delaystep'/>
<stl-vector pointer-type='stl-string' name='supermovie_sound'/>
<static-array name='supermovie_sound_time' count='16' comment='SOUND_CHANNELNUM'>
<static-array count='200' type-name='int32_t'/>
</static-array>
<static-array name='supermoviebuffer' count='800000' type-name='uint8_t'/>
<static-array name='supermoviebuffer_comp' count='1000000' type-name='uint8_t'/>
<int32_t name='currentblocksize'/>
<int32_t name='nextfilepos'/>
<int8_t name='first_movie_write'/>
<stl-string name='movie_file'/>
</struct-type>
<class-type type-name='layer_object' original-name='layer_objectst'>
<bool name='enabled'/>
<bool name='active'/>
<virtual-methods>
No destructor anywhere:
<vmethod ret-type='int32_t' name='getFirstVisible'/>
<vmethod ret-type='int32_t' name='getLastVisible'/>
<vmethod ret-type='int32_t' name='getX1'/>
<vmethod ret-type='int32_t' name='getY1'/>
<vmethod ret-type='int32_t' name='getX2'/>
<vmethod ret-type='int32_t' name='getY2'/>
<vmethod ret-type='int32_t' comment='list 1; button,base -1'/>
<vmethod ret-type='int32_t' name='getListCursor'/>
<vmethod name='setListCursor'> <int32_t/> </vmethod>
<vmethod name='feed'>
<pointer name='events'> <stl-set>
<enum type-name='interface_key' base-type='int32_t'/>
</stl-set> </pointer>
</vmethod>
<vmethod ret-type='bool' name='isSetMouseLRCur'/>
<vmethod ret-type='bool' name='isSetMouseLCur'/>
<vmethod ret-type='bool' name='isSetMouseRCur'/>
<vmethod ret-type='int32_t' name='getMouseLCur'/>
<vmethod ret-type='int32_t' name='getMouseRCur'/>
<vmethod name='getMouseLClickPos'> <pointer type-name='int32_t' name='x'/> <pointer type-name='int32_t' name='y'/> </vmethod>
<vmethod name='getMouseRClickPos'> <pointer type-name='int32_t' name='x'/> <pointer type-name='int32_t' name='y'/> </vmethod>
<vmethod ret-type='int32_t' name='getListLength'/>
<vmethod name='setListLength'> <int32_t/> </vmethod>
<vmethod ret-type='int32_t' name='getMouseX'/>
<vmethod ret-type='int32_t' name='getMouseY'/>
<vmethod ret-type='int32_t' name='getMouseXOld'/>
<vmethod ret-type='int32_t' name='getMouseYOld'/>
</virtual-methods>
</class-type>
<class-type type-name='layer_object_listst' inherits-from='layer_object'>
<int32_t name='cursor'/>
<int32_t name='num_entries'/>
<int32_t name='x1'/>
<int32_t name='y1'/>
<int32_t name='page_size'/>
<int32_t name='x2'/>
<int32_t name='y2'/>
<int32_t name='mouse_l_cur'/>
<int32_t name='mouse_r_cur'/>
<bool name='rclick_scrolls'/>
<int32_t name='flag' comment='for standardscrolling'/>
<enum name='key_lclick' base-type='int32_t' type-name='interface_key'/>
<enum name='key_rclick' base-type='int32_t' type-name='interface_key'/>
</class-type>
<class-type type-name='layer_object_buttonst' inherits-from='layer_object'>
<int32_t name='x1'/>
<int32_t name='y1'/>
<int32_t name='x2'/>
<int32_t name='y2'/>
<int32_t name='has_mouse_lclick'/>
<int32_t name='has_mouse_rclick'/>
<int32_t name='mouse_lclick_x'/>
<int32_t name='mouse_lclick_y'/>
<int32_t name='mouse_rclick_x'/>
<int32_t name='mouse_rclick_y'/>
<int32_t name='mouse_x'/>
<int32_t name='mouse_y'/>
<int32_t name='mouse_x_old'/>
<int32_t name='mouse_y_old'/>
<int8_t name='handle_mouselbtndown'/>
<int8_t name='handle_mouserbtndown'/>
</class-type>
<struct-type type-name='widget_menu'>
<padding size='24' comment='lines, std::map'/>
<int32_t name='selection'/>
<int32_t name='last_displayheight'/>
<bool name='bleached'/>
<padding size='24' comment='colors, std::map'/>
</struct-type>
<struct-type type-name='widget_textbox'>
<stl-string name='text'/>
<bool name='keep'/>
</struct-type>
<class-type type-name='KeybindingScreen' inherits-from='viewscreen'>
<enum base-type='int32_t' name='mode'>
<enum-item name='Main'/>
<enum-item name='KeyL'/>
<enum-item name='KeyR'/>
<enum-item name='Macro'/>
<enum-item name='Register'/>
</enum>
<compound name='main' type-name='widget_menu'/>
<compound name='keyL' type-name='widget_menu'/>
<compound name='keyR' type-name='widget_menu'/>
<compound name='macro' type-name='widget_menu'/>
<compound name='keyRegister' type-name='widget_menu'/>
</class-type>
<class-type type-name='MacroScreenLoad' inherits-from='viewscreen'>
<compound name='menu' type-name='widget_menu'/>
<int32_t name='width'/>
<int32_t name='height'/>
</class-type>
<class-type type-name='MacroScreenSave' inherits-from='viewscreen'>
<compound name='id' type-name='widget_textbox'/>
</class-type>
<struct-type type-name='world_dat_summary'>
<compound type-name='language_name' name='name'/>
<stl-string/>
<static-array count='15' type-name='int8_t' comment='same as the one at the top of world_data'/>
<compound name='last_id' comment='when loading, DF sets *_next_id to these fields plus 1'>
<int32_t name='unit'/>
<int32_t name='soul'/>
<int32_t name='ite'/>
<int32_t name='entity'/>
<int32_t name='nemesis'/>
<int32_t name='artifact'/>
<int32_t name='building'/>
<int32_t name='machine'/>
<int32_t name='hist_figure'/>
<int32_t name='hist_event'/>
<int32_t name='hist_event_collection'/>
<int32_t name='unit_chunk'/>
<int32_t name='art_image_chunk'/>
<int32_t name='task'/>
<int32_t name='squad'/>
<int32_t name='formation'/>
<int32_t name='activity'/>
<int32_t name='interaction_instance'/>
<int32_t name='written_content'/>
<int32_t name='identity'/>
<int32_t name='incident'/>
<int32_t name='crime'/>
<int32_t name='vehicle'/>
<int32_t name='army'/>
<int32_t name='army_controller'/>
<int32_t name='army_tracking_info'/>
<int32_t name='cultural_identity'/>
<int32_t name='agreement'/>
<int32_t name='poetic_form' since='v0.42.01'/>
<int32_t name='musical_form' since='v0.42.01'/>
<int32_t name='dance_form' since='v0.42.01'/>
<int32_t name='scale' since='v0.42.01'/>
<int32_t name='rhythm' since='v0.42.01'/>
<int32_t name='occupation' since='v0.42.01'/>
<int32_t name='belief_system' since='v0.44.01'/>
<int32_t name='image_set' since='v0.47.01'/>
<int32_t name='divination_set' since='v0.47.01'/>
</compound>
<stl-string/>
</struct-type>
<class-type type-name='viewscreen_adopt_regionst' inherits-from='viewscreen'>
<compound type-name='file_compressorst' name='compressor'/>
<enum base-type='int32_t' name='cur_step'>
<enum-item name='OpeningFile'/>
<enum-item name='ProcessingRawData'/>
<enum-item name='AllocatingSpace'/>
<enum-item name='LoadingItems'/>
<enum-item name='LoadingBuildings'/>
<enum-item name='LoadingEntities'/>
<enum-item name='LoadingCoinInformation'/>
<enum-item name='LoadingMapData'/>
<enum-item name='LoadingCivilizedPopulations'/>
<enum-item name='LoadingHistory'/>
<enum-item name='LoadingParameters'/>
<enum-item name='LoadingArtifacts'/>
<enum-item name='LoadingActiveHistoricalFigures'/>
<enum-item name='LoadingSquads'/>
<enum-item name='LoadingFormations'/>
<enum-item name='LoadingActivities'/>
<enum-item name='LoadingInteractions'/>
<enum-item name='LoadingWrittenContent'/>
<enum-item name='LoadingIdentities'/>
<enum-item name='LoadingIncidents'/>
<enum-item name='LoadingCrimes'/>
<enum-item name='LoadingVehicles'/>
<enum-item name='LoadingArmies'/>
<enum-item name='LoadingArmyControllers'/>
<enum-item name='LoadingTrackingInformation'/>
<enum-item name='LoadingCulturalIdentities'/>
<enum-item name='LoadingAgreements'/>
<enum-item name='LoadingArtForms'/>
<enum-item name='LoadingOccupations'/>
<enum-item name='LoadingBeliefSystems'/>
<enum-item name='LoadingImageSets'/>
<enum-item name='LoadingDivinationSets'/>
<enum-item name='ClosingFile'/>
<enum-item name='RebuildingTemporaryInformation'/>
<enum-item name='PreparingGame'/>
<enum-item name='Failed'/>
</enum>
<enum type-name='save_version' name='save_version'/>
<compound type-name='world_dat_summary' name='cur_save'/>
<compound type-name='matgloss_list' name='glosses'/>
<int32_t name='progress' comment='0..35'/>
</class-type>
<class-type type-name='viewscreen_adventure_logst' inherits-from='viewscreen'>
<stl-vector name='unk_20' type-name='pointer'/>
<stl-vector name='unk_38' type-name='pointer'/>
<stl-vector name='unk_50' type-name='pointer'/>
<compound name='unk_68'>
<stl-vector name='unk_0' type-name='pointer'/>
<stl-vector name='unk_18' type-name='int32_t'/>
<stl-vector name='unk_30' type-name='int32_t'/>
<int32_t name='unk_48'/>
</compound>
<enum base-type="int8_t" name="mode">
<enum-item name="Info"/>
<enum-item name="Map"/>
</enum>
<int8_t name="map_islocalview"/>
<int8_t name="map_hidden"/>
<int8_t since='v0.47.02'/>
<compound type-name='coord2d' name='player_region'/>
<compound type-name='coord2d' name='player_local'/>
<compound type-name='coord2d' name='min_discovered'/>
<compound type-name='coord2d' name='max_discovered'/>
<compound type-name='coord2d' name='cursor'/>
NOTE: assuming these were moved from below
<int16_t name="local_area_x1" comment="rectangle of 0 in local view"/>
<int16_t name="local_area_x2"/>
<int16_t name="local_area_y1"/>
<int16_t name="local_area_y2"/>
<int32_t name="index" comment="cursor position in info mode"/>
<int8_t name="map_draw_line"/>
<enum base-type="int16_t" name="info_mode">
<enum-item name="Events"/>
<enum-item name="Agreements"/>
<enum-item name="People"/>
<enum-item name="Sites"/>
<enum-item name="Groups"/>
<enum-item name="Regions"/>
<enum-item name="Bestiary"/>
</enum>
<int16_t since='v0.47.02'/>
<int16_t since='v0.47.02'/>
<int32_t name='unk_v40_1a'/>
<int32_t name='unk_v40_1b'/>
<int32_t name='unk_v40_1c'/>
<int32_t name='unk_v40_1d'/>
<int32_t name='unk_v40_1e'/>
<int32_t name='unk_v40_1f'/>
<int32_t/>
<int8_t since='v0.47.02'/>
<pointer since='v0.47.02'/>
<stl-string name='filter_str'/>
<int8_t name='in_filter'/>
<int8_t since='v0.47.02'/>
<static-array name='items' count='9'>
<stl-vector pointer-type='adventure_log_item'/>
</static-array>
<int8_t since='v0.47.02'/>
<int8_t since='v0.47.02'/>
<int8_t since='v0.47.02'/>
<int32_t since='v0.47.02'/>
<int32_t since='v0.47.02'/>
<static-array name='filtered_items' count='9'>
<stl-vector pointer-type='adventure_log_item'/>
</static-array>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
<stl-vector since='v0.47.02'/>
</class-type>
<struct-type type-name='adventure_log_item'>
<int32_t comment='possibly enum' init-value='-1'/>
<pointer/>
<pointer type-name='incident' name='incident'/>
<pointer/>
<int32_t name='year'/>
<int32_t name='time'/>
<stl-string name='str1'/>
<stl-string name='str2' comment='simplify_string(str1)'/>
<stl-string name='str3'/>
<stl-vector pointer-type='stl-string' name='info'/>
<stl-string/>
<pointer/>
<pointer/>
<pointer/>
<int32_t name='pos_x' init-value='-1'/>
<int32_t name='pos_y' init-value='-1'/>
<int32_t/>
<int16_t/>
<int8_t/>
</struct-type>
<class-type type-name='viewscreen_announcelistst' inherits-from='viewscreen'>
<pointer type-name='unit' name='unit'/>
<enum type-name='unit_report_type' base-type='int16_t' name='report_type'/>
<int32_t name='sel_idx'/>
<stl-vector pointer-type='report' name='reports'/>
</class-type>
<class-type type-name='viewscreen_assign_display_itemst' inherits-from='viewscreen'>
<pointer name='building' type-name='building_display_furniturest'/>
<static-string size='256' name='title'/>
<int32_t name='sel_type'/>
<int32_t name='sel_item'/>
<stl-vector name='selected_item_ids' type-name='int32_t' comment='sorted'/>
<enum name='sel_column' base-type='int32_t'>
<enum-item name='ItemTypes'/>
<enum-item name='Items'/>
</enum>
<stl-vector name='item_type'>
<enum base-type='int16_t' type-name='item_type'/>
</stl-vector>
<stl-vector name='artifacts' pointer-type='item'/>
<int8_t name='unk_3'/>
<static-array name='items' count='91' index-enum='item_type'>
<stl-vector pointer-type='item'/>
</static-array>
<static-array name='items_populated' count='91' index-enum='item_type' type-name='int8_t'/>
<stl-vector name='description'>
<pointer type-name='stl-string'/>
</stl-vector>
</class-type>
<class-type type-name='viewscreen_barterst' inherits-from='viewscreen'>
<pointer/>
<pointer/>
<pointer/>
<pointer/>
<int8_t/>
<int8_t/>
<int8_t/>
<static-array count='2'><stl-vector/></static-array>
<static-array count='2'><stl-vector/></static-array>
<static-array count='2'><stl-vector/></static-array>
<stl-vector/>
<stl-vector/>
<static-array count='2' type-name='int32_t'/>
<int8_t/>
<int16_t/>
<int8_t/>
<int32_t name='max_ask'/>
<int32_t name='max_offer'/>
<int32_t name='cur_ask'/>
<int32_t name='cur_offer'/>
<int8_t/>
<int8_t/>
<int8_t/>
<stl-string/>
<stl-vector/>
<int32_t/>
</class-type>
<class-type type-name='viewscreen_buildingst' inherits-from='viewscreen'>
<pointer name='building' type-name='building'/>
</class-type>
<class-type type-name='viewscreen_buildinglistst' inherits-from='viewscreen'>
<int32_t name='cursor' refers-to='$$._parent.buildings[$]'/>
<bool name='alt_right_panel'/>
<stl-vector name='buildings' pointer-type='building'/>
<stl-vector name='buildings2' pointer-type='building'/>
<stl-vector name='room_value' type-name='int32_t' index-refers-to='$$._parent.buildings[$]'/>
<stl-vector name='room_value2' type-name='int32_t' index-refers-to='$$._parent.buildings2[$]'/>
</class-type>
<enum-type type-name='embark_finder_option'>
<enum-item name='DimensionX'/>
<enum-item name='DimensionY'/>
<enum-item name='Savagery'/>
<enum-item name='Evil'/>
<enum-item name='Elevation'/>
<enum-item name='Temperature'/>
<enum-item name='Rain'/>
<enum-item name='Drainage'/>
<enum-item name='FluxStone'/>
<enum-item name='AquiferLight'/>
<enum-item name='AquiferHeavy'/>
<enum-item name='River'/>
<enum-item name='UndergroundRiver'/>
<enum-item name='UndergroundPool'/>
<enum-item name='MagmaPool'/>
<enum-item name='MagmaPipe'/>
<enum-item name='Chasm'/>
<enum-item name='BottomlessPit'/>
<enum-item name='OtherFeatures'/>
<enum-item name='ShallowMetal'/>
<enum-item name='DeepMetal'/>
<enum-item name='Soil'/>
<enum-item name='Clay'/>
</enum-type>
<struct-type type-name='embark_location'>
<compound name='region_pos' type-name='coord2d'/>
<int16_t name="reclaim_site" ref-target='world_site'/>
<int16_t name="reclaim_idx"/>
<compound name='biome_rgn' type-name='coord2d_path'/>
<compound name='embark_pos_min' type-name='coord2d'/>
<compound name='embark_pos_max' type-name='coord2d'/>
<compound name='embark_biome_rgn' type-name='coord2d'
comment='Valid only after e pressed.'/>
</struct-type>
<class-type type-name='viewscreen_choose_start_sitest' inherits-from='viewscreen'>
<enum base-type='int32_t' name='page'>
<enum-item name='Biome'/>
<enum-item name='Neighbors'/>
<enum-item name='Civilization'/>
<enum-item name='Elevation'/>
<enum-item name='Cliffs'/>
<enum-item name='Reclaim'/>
<enum-item name='Reclaim2'/>
<enum-item name='Find'/>
<enum-item name='Notes'/>
</enum>
<compound name='location' type-name='embark_location'/>
<int32_t name="biome_idx"/>
<bool name="biome_highlighted"/>
<bool name='in_embark_aquifer'/>
<bool name='in_embark_salt'/>
<bool name='in_embark_large'/>
<bool name='in_embark_narrow'/>
<bool name='in_embark_only_warning'/>
<bool name='in_embark_civ_dying'/>
<stl-vector name="highlighted_sites" pointer-type='world_site'/>
<stl-vector name="local_sites" pointer-type='world_site'/>
<int32_t name="reclaim_idx" refers-to='$global.world.world_data.old_sites[$]'/>
<int32_t name="civ_idx" refers-to='$$._global.available_civs[$]'/>
<stl-vector name="available_civs" pointer-type="historical_entity"/>
<stl-vector name='site_info' pointer-type='stl-string' since='v0.40.01'/>
<pointer name="site_abandoned" type-name="history_event" has-bad-pointers='true' since='v0.40.01'/>
<pointer name="site_created" type-name="history_event" has-bad-pointers='true' since='v0.40.01'/>
<int32_t name="unk_a4" since='v0.40.01'/>
<int32_t name="unk_a8"/>
<compound name='finder'>
<int32_t name="search_x" init-value='-1' comment='to world width / 16'/>
<int32_t name="search_y" comment='to world height / 16'/>
<int32_t name="cursor" refers-to='$$._parent.enabled_options[$]'/>
<static-array type-name='int32_t' name="options"
count="23" index-enum='embark_finder_option'/>
<static-array type-name='bool' name="unmatched"
count="23" index-enum='embark_finder_option'/>
<stl-vector name="visible_options">
<enum base-type='int32_t' type-name='embark_finder_option'/>
</stl-vector>
<enum name='finder_state' base-type='int16_t'>
<enum-item name='None' value='-1'/>
<enum-item name='Searching'/>
<enum-item name='NoResult'/>
<enum-item name='Partial'/>
<enum-item name='Suitable'/>
</enum>
<int16_t name="unk_11e"/>
<int16_t name='unk_120'/>
<int16_t name='unk_122'/>
<int16_t name='unk_124'/>
<int16_t name='unk_126'/>
<int16_t name='unk_128'/>
</compound>
<stl-vector name="notes_order" type-name='int32_t' refers-to='$global.world.world_data.embark_notes[$]'/>
<stl-vector name="cur_note_name" pointer-type='stl-string'/>
<int32_t name='unk_14c'/>
<int32_t name='unk_150'/>
<int16_t name="unk_154"/>
<int8_t name="note_tile"/>
<int16_t name="note_fg_color"/>
<int16_t name="note_bg_color"/>
<int32_t name="unk_15c"/>
</class-type>
<struct-type type-name='mission'>
<int32_t name='army_controller' ref-target='army_controller'/>
<int32_t name='entity' ref-target='historical_entity'/>
<int32_t name='target_site' ref-target='world_site'/>
<int32_t name='unk_2'/> -1
<int32_t name='target_x'/>
<int32_t name='target_y'/>
<int32_t name='unk_3'/>
<int32_t name='unk_4'/>
<int32_t name='unk_5'/>
<int32_t name='unk_6'/>
<int32_t name='unk_7'/>
<int32_t name='unk_8'/>
<int32_t name='unk_9'/>
<int32_t name='unk_10'/>
<int32_t name='year'/>
<int32_t name='year_tick'/>
<int32_t name='unk_12'/> -1
<int32_t name='army_controller2' ref-target='army_controller'/>
<int32_t name='histfig' ref-target='historical_figure'/>
<int32_t name='unk_14'/> -1
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t name='unk_15'/>
<int32_t/>
<stl-vector name='squads' type-name='int32_t' ref-target='squad'/>
<stl-vector name='messengers' type-name='int32_t' ref-target='occupation'/>
<int32_t/>
<int32_t/>
<compound name='details' is-union='true'>
<pointer name='raid'>
<enum name='raid_type' base-type='int32_t'>
<enum-item name='Raze' value='0'/>
<enum-item name='TakeOver' value='1'/>
<enum-item name='Occupy' value='2'/>
<enum-item name='DemandTribute' value='3'/>
<enum-item name='Raid' value='4'/>
<enum-item name='Explore' value='5'/>
<enum-item name='Pillage' value='6'/>
</enum>
<int32_t name='unk_2'/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<bitfield base-type='uint32_t' name='raid_flags'>
<flag-bit name='Unknown1'/>
<flag-bit name='OneTimeTribute'/>
<flag-bit name='OngoingTribute'/>
<flag-bit name='FreeCaptives'/>
<flag-bit name='ReleaseOtherPrisoners'/>
<flag-bit name='TakeImportantTreasures'/>
<flag-bit name='LootOtherItems'/>
<flag-bit name='StealLivestock'/>
<flag-bit name='Unknown256'/>
<flag-bit name='DemandSurrender'/>
</bitfield>
<int32_t name='unk_3'/>
<int32_t name='unk_4'/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
<int32_t/>
</pointer>
<pointer name='recovery'>
<int32_t name='artifact' ref-target='artifact_record'/>
<int32_t name='unk_2'/>
</pointer>
<pointer name='rescue'>
<int32_t name='histfig' ref-target='historical_figure'/>
<int32_t name='unk_2'/>
</pointer>
<pointer name='request'>
<stl-vector name='workers' type-name='int32_t' ref-target='historical_figure'/>
<int32_t name='unk_1'/>
<int32_t name='unk_2'/>
<int32_t name='unk_3'/>
<int32_t name='unk_4'/>
</pointer>
</compound>
<enum name='type' base-type='int32_t'>
<enum-item name='Raid' value='2'/>
<enum-item name='RecoverArtifact' value='17'/>
<enum-item name='RescuePerson' value='18'/>
<enum-item name='RequestWorkers' value='19'/>
</enum>
<int32_t/>
</struct-type>
<class-type type-name='viewscreen_civlistst' inherits-from='viewscreen'>
<enum name='page' base-type='int32_t' init-value='World'>
<enum-item name='Civilizations'/>
<enum-item name='News'/>
<enum-item name='World'/>
<enum-item name='Missions'/>
<enum-item name='MissionSquads'/>
<enum-item name='MissionMessengers' since='v0.44.11'/>
<enum-item name='MissionDetails' since='v0.44.11'/>
<enum-item name='People'/>
<enum-item name='Artifacts'/>
</enum>
<int32_t name='sel_idx'/>
<stl-vector pointer-type='historical_entity' name='entities'/>
<int32_t name='map_x'/>
<int32_t name='map_y'/>
<pointer name='site' type-name='world_site'/>
<stl-vector name='site_artifacts' pointer-type='artifact_record'/>
<stl-vector name='site_prisoners' pointer-type='unit'/>
<int8_t name='site_is_linked' since='v0.44.11'/>
<stl-vector name='unk_site_nemesis' since='v0.44.11' pointer-type='nemesis_record'/> same as site.unk_1.nemesis but without dead and some others
<stl-vector name='missions' pointer-type='mission'/>
<int32_t name='mission_idx'/>
<stl-vector name='squads' pointer-type='squad'/>
<stl-vector name='squads_travelling' type-name='int32_t'/>
<int32_t name='squad_idx'/>
<stl-vector name='messengers' pointer-type='occupation'/>
<stl-vector name='messengers_travelling' type-name='int32_t'/>
<int32_t name='messenger_idx'/>
<stl-vector name='workers' pointer-type='nemesis_record'/>
<int32_t name='worker_idx'/>
<stl-vector name='people' pointer-type='historical_figure'/>
<int32_t name='person_idx'/>
<int32_t name='person_x'/>
<int32_t name='person_y'/>
<stl-vector name='artifact_records' pointer-type='artifact_record'/>
<stl-vector name='artifact_details'>
<pointer>
<pointer name='unk_1'/>
<int32_t name='last_site' ref-target='world_site'/>
<int32_t name='unk_3'/> -1 for non-sites
<int32_t name='last_holder_hf' ref-target='historical_figure'/>
<int32_t name='unk_5'/>
<int32_t name='unk_6'/>
<int32_t name='unk_7'/> 0x6b
<int32_t name='unk_8'/>
<int32_t name='unk_9'/> uninitialized
<pointer name='unk_10'/>
</pointer>
</stl-vector>
<int32_t name='artifact_idx'/>
<int32_t name='artifact_x'/>
<int32_t name='artifact_y'/>
<stl-vector name='artifact_desc' pointer-type='stl-string'/>
<pointer name='artifact_claimed_by_unk1'/>
<pointer name='artifact_claimed_by_unk2'/>
<pointer name='artifact_claimed_by_hf' type-name='historical_figure'/>
<pointer name='histfig' type-name='historical_figure'/>
<pointer name='histfig2' type-name='historical_figure'/>
<stl-vector name='rumors'>
<pointer>
this is ugly but field meanings change depending on type value
<int32_t name='artifact_or_entity'/>
<int32_t name='site' ref-target='world_site'/>
<int32_t name='histfig_or_entity'/>
<int32_t name='histfig2' ref-target='historical_figure'/>
<int32_t name='year1'/>
<int32_t name='year_tick1'/>
<int32_t name='year2'/>
<int32_t name='year_tick2'/>
<int32_t name='unk_3'/>
<enum name='type' base-type='int32_t'>
<enum-item name='ArmyMarched' value='0'/>
<enum-item name='Kidnapped' value='1'/>
<enum-item name='Unknown3' value='3'/> not displayed
<enum-item name='RefugeesFled' value='7'/>
<enum-item name='MovedOn' value='8'/>
<enum-item name='Reclaimed' value='9'/>
<enum-item name='Founded' value='10'/>
<enum-item name='GaveUpOccupation' value='13'/>
<enum-item name='BecameRuler' value='16'/>
<enum-item name='Claimed' value='17'/>
<enum-item name='ArtifactLocation' value='25'/>
<enum-item name='Unknown28' value='28'/> not displayed
</enum>
</pointer>
</stl-vector>
<stl-vector name='unk_24'/>
<int32_t name='unk_25'/> 0
<int32_t name='news_x'/>
<int32_t name='news_y'/>
<pointer name='unk_28'/> 0
<int32_t name='unk_29'/> 0
<int32_t name='unk_2a'/> -1
<pointer name='unk_2b'/> 0
<pointer name='unk_2c'/> 0
<int32_t name='unk_2d'/> -1
<int32_t name='unk_2e'/> -1
<pointer name='unk_cache_ptr'/> points into unk_cache.tmp2
<compound name='unk_cache'>
todo: fix layout - some fields in "tmp2" are int8/int32, but many others are uninitialized
osx64: 0x127E14E78 to 0x127E1CC50 = 32216 (pre-0.44.11 lua sizeof was 32016)
osx32: 0x038DEF60 to 0x038E6D34 = 32212 (pre-0.44.11 lua sizeof was 32008)
<compound name='tmp1'> used when on "news and rumors" page, and "holdings and tribute" is enabled
<static-array name='values' count='50' type-name='int32_t'/>
<int32_t name='count'/>
</compound>
<compound name='tmp2'>
<static-array count='4001' type-name='int64_t'/>
</compound>
</compound>
<stl-vector name='news_text' pointer-type='stl-string'/>
<bool name='show_holdings' since='v0.44.11'/>
<bool name='show_legend' since='v0.44.11'/>
</class-type>
<class-type type-name='viewscreen_counterintelligencest' inherits-from='viewscreen'>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<int32_t/>
<int32_t/>
<stl-string/>
<int8_t/>
<int8_t/>
<pointer/>
<int32_t/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
</class-type>
<class-type type-name='viewscreen_createquotast' inherits-from='viewscreen'>
<int32_t name='building_id' ref-target='building'/>
<static-string name='str_filter' size='256'/>
<int32_t name='sel_idx'/>
<stl-vector name='orders' pointer-type='manager_order_template' comment='filtered orders'/>
<stl-vector name='all_orders' pointer-type='manager_order_template'/>
<bool name='want_quantity'/>
<stl-string name='str_quantity'/>
<pointer name='workshop_profile_orders' comment='assigned from viewscreen_workshop_profilest.orders'>
<stl-vector pointer-type='manager_order'/>
</pointer>
</class-type>
<class-type type-name='viewscreen_customize_unitst' inherits-from='viewscreen'>
<pointer name="unit" type-name="unit"/>
<int8_t name='editing_nickname'/>
<int8_t name='editing_profession'/>
<stl-string name='previous_name'/> previous value of the string, for Abort Edit
<int8_t name='has_name'/>
</class-type>
<class-type type-name='viewscreen_dungeon_monsterstatusst'
inherits-from='viewscreen'>
<pointer name="unit" type-name="unit"/>
<int32_t name="inventory_cursor"/>
<int32_t name="body_part_cursor"/>
<stl-vector name="body_part">
<int16_t refers-to='$$._global.unit.body.body_plan.body_parts[$]'/>
</stl-vector>
<bool name="view_skills"/>
<int32_t/>
<int32_t name='length'/>
<int32_t name='scroll_pos'/>
<int8_t/>
<stl-vector name="inventory" pointer-type="unit_inventory_item"/>
<stl-vector name="spatters" pointer-type="spatter"/>
</class-type>
<class-type type-name='viewscreen_dungeon_wrestlest' inherits-from='viewscreen'>
<pointer name="player" type-name='unit'/>
<pointer name="target" type-name='unit'/>
<int8_t/>
<int32_t/>
<stl-vector/>
<int32_t/>
<int32_t/>
<stl-vector type-name='int32_t'/>
<stl-vector type-name='int32_t'/>
<compound name='unk1'>
<pointer type-name='unit'/>
<int8_t/>
<int8_t/>
<stl-vector name='weapons' pointer-type='item'/>
<stl-vector type-name='int16_t'/>
<stl-vector/>
<stl-vector type-name='int16_t'/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
<stl-vector type-name='int16_t'/>
<stl-vector type-name='int16_t'/>
<stl-vector type-name='int16_t'/>
<stl-vector type-name='int16_t'/>
<stl-vector/>
<stl-vector/>
<stl-vector/>
</compound>
<int32_t/>
<int32_t/>
</class-type>
<class-type type-name='viewscreen_dungeonmodest' inherits-from='viewscreen'>
<int32_t name="x"/>
<int32_t name="y"/>
<int32_t name="z"/>
<int32_t name="announce_y"/> screen y of first announce shown
<int32_t name="announce_idx"/> idx of first announcement currently displayed
<int8_t name="announce_more"/> 0 [DONE] 1 [MORE]
</class-type>
<class-type type-name='viewscreen_dwarfmodest' inherits-from='viewscreen'>
<int8_t name='shown_site_name'/> display site name next frame
<int16_t name='jeweler_mat_count'/> jewelers workshop orders
<stl-vector type-name='int32_t' name='jeweler_cutgem' index-refers-to='(material-by-id 0 $)'/> number of free items for job
<stl-vector type-name='int32_t' name='jeweler_encrust' index-refers-to='(material-by-id 0 $)'/> index list +3 (green/clear/crystal glass)
<stl-vector name='unit_labors_sidemenu'> For sidemenu unit/prefs/labor
<enum type-name='unit_labor' base-type='int32_t'/> When negative, labor category
</stl-vector>
<stl-vector name='unit_labors_sidemenu_uplevel'>
<enum type-name='unit_labor' base-type='int32_t'/>
</stl-vector>
<int32_t name='unit_labors_sidemenu_uplevel_idx'/>
<int8_t name='sideSubmenu'/> determine if ESC is Done or Back
<int8_t name='keyRepeat'/>
<stl-vector name='trained_animals' pointer-type='unit'/>
<int32_t name='trained_animal_idx'/>
<int32_t name='number_assigned_hunt'/> for current unit
<int32_t name='number_assigned_war'/>
</class-type>
<class-type type-name='viewscreen_entityst' inherits-from='viewscreen'>
<pointer name='entity' type-name='historical_entity'/>
<stl-vector/>
<int32_t/>?
<stl-vector pointer-type='nemesis_record' name='important_leader_nemesis'/>
<stl-vector type-name='int32_t' name='important_leader_precedence'/>
<int32_t name='start_idx'/>
<stl-vector name='agreements' pointer-type='meeting_event'/>
<stl-vector name='agreement_status' type-name='int8_t'/>
<int32_t name='agreement_cursor'/>
<int16_t name='page'/>
</class-type>
<enum-type type-name='export_map_type'>
<enum-item value='-3' comment='-hf#'/>
<enum-item value='-2' comment='-rel#'/>
<enum-item name='standard_biome_site_map' value='0'/>
<enum-item name='elevations_including_lake_and_ocean_floors'/>
<enum-item name='elevations_respecting_water_level'/>
<enum-item name='biome'/>
<enum-item name='hydrosphere'/>
<enum-item name='temperature'/>
<enum-item name='rainfall'/>
<enum-item name='drainage'/>
<enum-item name='savagery'/>
<enum-item name='volcanism'/>
<enum-item name='current_vegetation'/>
<enum-item name='evil'/>
<enum-item name='salinity'/>
<enum-item name='structures_fields_roads_etc'/>
<enum-item name='trade'/>