Skip to content

Commit 48077a0

Browse files
committed
Further update structures for 53.04
1 parent 6c70c75 commit 48077a0

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

df.widgets.unit_list.xml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,18 @@
5050
</class-type>
5151

5252
<struct-type type-name='item_or_unit'>
53-
<pointer/>
54-
<bool/>
53+
<!--
54+
Can't use this right now due to lack of identity_traits for std::variant
55+
<stl-variant raw-type='df::unit *, df::item *'/>
56+
-->
57+
<compound is-union='true'>
58+
<pointer type-name='unit' name='u'/>
59+
<pointer type-name='item' name='i'/>
60+
</compound>
61+
<int8_t name='t'/>
5562
</struct-type>
5663

5764
<class-type type-name='widget_unit_list' original-name='widgets::unit_list' inherits-from='widget_container'>
58-
<stl-vector name='deferred_units_builds'>
59-
<stl-weak-ptr type-name='widget_container'/>
60-
<pointer/>
61-
<bool/>
62-
</stl-vector>
63-
<stl-shared-ptr type-name='widget' name='no_unit_entry'/>
6465
<stl-vector type-name='sort_entry' name='sorting_by' comment='std::vector&lt;sort_entry&lt;item_or_unit&gt;&gt;'/>
6566
<stl-vector name='always_sorting_by'> <stl-function type-name='bool'/> </stl-vector>
6667
<stl-vector name='partitions'> <stl-function type-name='bool'/> </stl-vector>
@@ -84,8 +85,14 @@
8485
</stl-vector>
8586
<enum type-name='unit_list_options' name='skill_type'/>
8687
<stl-mutex name='mtx'/>
87-
<static-array type-name='int32_t' count='149' index-enum='job_skill' name='skills'/>
88+
<static-array type-name='int32_t' index-enum='job_skill' name='skills'/>
8889
<stl-string name='filter_str'/>
90+
91+
<stl-vector name='deferred_units_builds'>
92+
<stl-weak-ptr type-name='widget_container'/>
93+
<compound type-name='item_or_unit'/>
94+
</stl-vector>
95+
<stl-shared-ptr type-name='widget' name='no_unit_entry'/>
8996
</class-type>
9097

9198
<class-type type-name='widget_unit_sort_widget' inherits-from='widget_sort_widget' comment='template specialization using unit_list + unit_list::item_or_unit'/>

0 commit comments

Comments
 (0)