File tree Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Expand file tree Collapse file tree 1 file changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ public bool TryGet(InfoId infoId, out InfoScriptableObject val)
114
114
{
115
115
return TryGet ( infoId . Value , out val ) ;
116
116
}
117
-
117
+
118
118
public IEnumerator < InfoScriptableObject > GetEnumerator ( )
119
119
{
120
120
return entries . GetEnumerator ( ) ;
@@ -125,6 +125,16 @@ IEnumerator IEnumerable.GetEnumerator()
125
125
return GetEnumerator ( ) ;
126
126
}
127
127
128
+ protected void SortEntries ( IComparer < InfoScriptableObject > comparer )
129
+ {
130
+ entries . Sort ( comparer ) ;
131
+ }
132
+
133
+ protected void SortEntries ( Comparison < InfoScriptableObject > comparison )
134
+ {
135
+ entries . Sort ( comparison ) ;
136
+ }
137
+
128
138
}
129
139
130
140
/// <inheritdoc cref="InfoTable"/>
@@ -214,6 +224,16 @@ public bool TryGet(InfoId infoId, out T val)
214
224
return TryGet ( infoId . Value , out val ) ;
215
225
}
216
226
227
+ protected void SortEntries ( IComparer < T > comparer )
228
+ {
229
+ entries . Sort ( comparer ) ;
230
+ }
231
+
232
+ protected void SortEntries ( Comparison < T > comparison )
233
+ {
234
+ entries . Sort ( comparison ) ;
235
+ }
236
+
217
237
#if UNITY_EDITOR
218
238
public override void GatherEntries ( )
219
239
{
You can’t perform that action at this time.
0 commit comments