terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
SortingSteps.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x0200092D RID: 2349
10 public static class SortingSteps
11 {
12 // Token: 0x0200092E RID: 2350
13 public class ByNetId : IBestiarySortStep, IEntrySortStep<BestiaryEntry>, IComparer<BestiaryEntry>
14 {
15 // Token: 0x1700081B RID: 2075
16 // (get) Token: 0x0600472F RID: 18223 RVA: 0x0025E094 File Offset: 0x0025C294
18 {
19 get
20 {
21 return true;
22 }
23 }
24
25 // Token: 0x06004730 RID: 18224 RVA: 0x0025E0A4 File Offset: 0x0025C2A4
27 {
28 int num = 1;
29 List<IBestiaryInfoElement> <Info>k__BackingField = x.<Info>k__BackingField;
30 if (num == 0)
31 {
32 }
33 if (num == 0)
34 {
35 }
36 if (<Info>k__BackingField != null)
37 {
38 }
39 long num2 = 0L;
40 List<IBestiaryInfoElement> <Info>k__BackingField2 = y.<Info>k__BackingField;
41 if (<Info>k__BackingField == null)
42 {
43 }
44 if (<Info>k__BackingField2 != null)
45 {
46 }
47 long num3 = 0L;
48 int num4;
49 if (num2 == 0L)
50 {
51 return num4;
52 }
53 if (num3 != 0L)
54 {
55 return num4;
56 }
57 return num4;
58 }
59
60 // Token: 0x06004731 RID: 18225 RVA: 0x0025E0E8 File Offset: 0x0025C2E8
61 public string GetDisplayNameKey()
62 {
63 return "BestiaryInfo.Sort_ID";
64 }
65
66 // Token: 0x06004732 RID: 18226 RVA: 0x0025E0FC File Offset: 0x0025C2FC
67 public ByNetId()
68 {
69 }
70
71 // Token: 0x0200092F RID: 2351
73 [Serializable]
74 private sealed class <>c
75 {
76 // Token: 0x06004733 RID: 18227 RVA: 0x00003BB6 File Offset: 0x00001DB6
77 // Note: this type is marked as 'beforefieldinit'.
78 static <>c()
79 {
80 }
81
82 // Token: 0x06004734 RID: 18228 RVA: 0x00003BB6 File Offset: 0x00001DB6
83 public <>c()
84 {
85 }
86
87 // Token: 0x06004735 RID: 18229 RVA: 0x0025E110 File Offset: 0x0025C310
88 internal bool <Compare>b__2_0(IBestiaryInfoElement element)
89 {
90 return default(bool);
91 }
92
93 // Token: 0x06004736 RID: 18230 RVA: 0x0025E128 File Offset: 0x0025C328
94 internal bool <Compare>b__2_1(IBestiaryInfoElement element)
95 {
96 return default(bool);
97 }
98
99 // Token: 0x04008350 RID: 33616
100 public static readonly SortingSteps.ByNetId.<>c <>9;
101
102 // Token: 0x04008351 RID: 33617
104
105 // Token: 0x04008352 RID: 33618
107 }
108 }
109
110 // Token: 0x02000930 RID: 2352
111 public class ByUnlockState : IBestiarySortStep, IEntrySortStep<BestiaryEntry>, IComparer<BestiaryEntry>
112 {
113 // Token: 0x1700081C RID: 2076
114 // (get) Token: 0x06004737 RID: 18231 RVA: 0x0025E140 File Offset: 0x0025C340
116 {
117 get
118 {
119 return true;
120 }
121 }
122
123 // Token: 0x06004738 RID: 18232 RVA: 0x0025E150 File Offset: 0x0025C350
133
134 // Token: 0x06004739 RID: 18233 RVA: 0x0025E17C File Offset: 0x0025C37C
135 public string GetDisplayNameKey()
136 {
137 return "BestiaryInfo.Sort_Unlocks";
138 }
139
140 // Token: 0x0600473A RID: 18234 RVA: 0x0025E190 File Offset: 0x0025C390
142 {
143 }
144 }
145
146 // Token: 0x02000931 RID: 2353
147 public class ByBestiarySortingId : IBestiarySortStep, IEntrySortStep<BestiaryEntry>, IComparer<BestiaryEntry>
148 {
149 // Token: 0x1700081D RID: 2077
150 // (get) Token: 0x0600473B RID: 18235 RVA: 0x0025E1A4 File Offset: 0x0025C3A4
152 {
153 get
154 {
155 }
156 }
157
158 // Token: 0x0600473C RID: 18236 RVA: 0x0025E1B4 File Offset: 0x0025C3B4
160 {
161 int num = 1;
162 List<IBestiaryInfoElement> <Info>k__BackingField = x.<Info>k__BackingField;
163 if (num == 0)
164 {
165 }
166 if (num == 0)
167 {
168 }
169 if (<Info>k__BackingField != null)
170 {
171 }
172 long num2 = 0L;
173 List<IBestiaryInfoElement> <Info>k__BackingField2 = y.<Info>k__BackingField;
174 if (<Info>k__BackingField == null)
175 {
176 }
177 if (<Info>k__BackingField2 != null)
178 {
179 }
180 long num3 = 0L;
181 int num4;
182 if (num2 == 0L)
183 {
184 return num4;
185 }
186 if (num3 != 0L)
187 {
188 return num4;
189 }
190 return num4;
191 }
192
193 // Token: 0x0600473D RID: 18237 RVA: 0x0025E1F8 File Offset: 0x0025C3F8
194 public string GetDisplayNameKey()
195 {
196 return "BestiaryInfo.Sort_BestiaryID";
197 }
198
199 // Token: 0x0600473E RID: 18238 RVA: 0x0025E20C File Offset: 0x0025C40C
201 {
202 }
203
204 // Token: 0x02000932 RID: 2354
206 [Serializable]
207 private sealed class <>c
208 {
209 // Token: 0x0600473F RID: 18239 RVA: 0x00003BB6 File Offset: 0x00001DB6
210 // Note: this type is marked as 'beforefieldinit'.
211 static <>c()
212 {
213 }
214
215 // Token: 0x06004740 RID: 18240 RVA: 0x00003BB6 File Offset: 0x00001DB6
216 public <>c()
217 {
218 }
219
220 // Token: 0x06004741 RID: 18241 RVA: 0x0025E220 File Offset: 0x0025C420
221 internal bool <Compare>b__2_0(IBestiaryInfoElement element)
222 {
223 return default(bool);
224 }
225
226 // Token: 0x06004742 RID: 18242 RVA: 0x0025E238 File Offset: 0x0025C438
227 internal bool <Compare>b__2_1(IBestiaryInfoElement element)
228 {
229 return default(bool);
230 }
231
232 // Token: 0x04008353 RID: 33619
233 public static readonly SortingSteps.ByBestiarySortingId.<>c <>9;
234
235 // Token: 0x04008354 RID: 33620
237
238 // Token: 0x04008355 RID: 33621
240 }
241 }
242
243 // Token: 0x02000933 RID: 2355
244 public class ByBestiaryRarity : IBestiarySortStep, IEntrySortStep<BestiaryEntry>, IComparer<BestiaryEntry>
245 {
246 // Token: 0x1700081E RID: 2078
247 // (get) Token: 0x06004743 RID: 18243 RVA: 0x0025E250 File Offset: 0x0025C450
249 {
250 get
251 {
252 }
253 }
254
255 // Token: 0x06004744 RID: 18244 RVA: 0x0025E260 File Offset: 0x0025C460
257 {
258 int num = 1;
259 List<IBestiaryInfoElement> <Info>k__BackingField = x.<Info>k__BackingField;
260 if (num == 0)
261 {
262 }
263 if (num == 0)
264 {
265 }
266 if (<Info>k__BackingField != null)
267 {
268 }
269 long num2 = 0L;
270 List<IBestiaryInfoElement> <Info>k__BackingField2 = y.<Info>k__BackingField;
271 if (<Info>k__BackingField == null)
272 {
273 }
274 if (<Info>k__BackingField2 != null)
275 {
276 }
277 long num3 = 0L;
278 int num4;
279 if (num2 == 0L)
280 {
281 return num4;
282 }
283 if (num3 != 0L)
284 {
285 return num4;
286 }
287 return num4;
288 }
289
290 // Token: 0x06004745 RID: 18245 RVA: 0x0025E2A4 File Offset: 0x0025C4A4
291 public string GetDisplayNameKey()
292 {
293 return "BestiaryInfo.Sort_Rarity";
294 }
295
296 // Token: 0x06004746 RID: 18246 RVA: 0x0025E2B8 File Offset: 0x0025C4B8
298 {
299 }
300
301 // Token: 0x02000934 RID: 2356
303 [Serializable]
304 private sealed class <>c
305 {
306 // Token: 0x06004747 RID: 18247 RVA: 0x00003BB6 File Offset: 0x00001DB6
307 // Note: this type is marked as 'beforefieldinit'.
308 static <>c()
309 {
310 }
311
312 // Token: 0x06004748 RID: 18248 RVA: 0x00003BB6 File Offset: 0x00001DB6
313 public <>c()
314 {
315 }
316
317 // Token: 0x06004749 RID: 18249 RVA: 0x0025E2CC File Offset: 0x0025C4CC
318 internal bool <Compare>b__2_0(IBestiaryInfoElement element)
319 {
320 return default(bool);
321 }
322
323 // Token: 0x0600474A RID: 18250 RVA: 0x0025E2E4 File Offset: 0x0025C4E4
324 internal bool <Compare>b__2_1(IBestiaryInfoElement element)
325 {
326 return default(bool);
327 }
328
329 // Token: 0x04008356 RID: 33622
330 public static readonly SortingSteps.ByBestiaryRarity.<>c <>9;
331
332 // Token: 0x04008357 RID: 33623
334
335 // Token: 0x04008358 RID: 33624
337 }
338 }
339
340 // Token: 0x02000935 RID: 2357
341 public class Alphabetical : IBestiarySortStep, IEntrySortStep<BestiaryEntry>, IComparer<BestiaryEntry>
342 {
343 // Token: 0x1700081F RID: 2079
344 // (get) Token: 0x0600474B RID: 18251 RVA: 0x0025E2FC File Offset: 0x0025C4FC
346 {
347 get
348 {
349 }
350 }
351
352 // Token: 0x0600474C RID: 18252 RVA: 0x0025E30C File Offset: 0x0025C50C
354 {
355 int num = 1;
356 List<IBestiaryInfoElement> <Info>k__BackingField = x.<Info>k__BackingField;
357 if (num == 0)
358 {
359 }
360 if (num == 0)
361 {
362 }
363 if (<Info>k__BackingField != null)
364 {
365 }
366 long num2 = 0L;
367 List<IBestiaryInfoElement> <Info>k__BackingField2 = y.<Info>k__BackingField;
368 if (<Info>k__BackingField == null)
369 {
370 }
371 if (<Info>k__BackingField2 != null)
372 {
373 }
374 long num3 = 0L;
375 int num4;
376 if (num2 == 0L)
377 {
378 return num4;
379 }
380 if (num3 != 0L)
381 {
382 string text;
384 string text2;
385 string textValue2 = Language.GetTextValue(text2);
386 num4 = textValue.CompareTo(textValue2);
387 return num4;
388 }
389 return num4;
390 }
391
392 // Token: 0x0600474D RID: 18253 RVA: 0x0025E36C File Offset: 0x0025C56C
393 public string GetDisplayNameKey()
394 {
395 return "BestiaryInfo.Sort_Alphabetical";
396 }
397
398 // Token: 0x0600474E RID: 18254 RVA: 0x0025E380 File Offset: 0x0025C580
400 {
401 }
402
403 // Token: 0x02000936 RID: 2358
405 [Serializable]
406 private sealed class <>c
407 {
408 // Token: 0x0600474F RID: 18255 RVA: 0x00003BB6 File Offset: 0x00001DB6
409 // Note: this type is marked as 'beforefieldinit'.
410 static <>c()
411 {
412 }
413
414 // Token: 0x06004750 RID: 18256 RVA: 0x00003BB6 File Offset: 0x00001DB6
415 public <>c()
416 {
417 }
418
419 // Token: 0x06004751 RID: 18257 RVA: 0x0025E394 File Offset: 0x0025C594
420 internal bool <Compare>b__2_0(IBestiaryInfoElement element)
421 {
422 return default(bool);
423 }
424
425 // Token: 0x06004752 RID: 18258 RVA: 0x0025E3AC File Offset: 0x0025C5AC
426 internal bool <Compare>b__2_1(IBestiaryInfoElement element)
427 {
428 return default(bool);
429 }
430
431 // Token: 0x04008359 RID: 33625
432 public static readonly SortingSteps.Alphabetical.<>c <>9;
433
434 // Token: 0x0400835A RID: 33626
436
437 // Token: 0x0400835B RID: 33627
439 }
440 }
441
442 // Token: 0x02000937 RID: 2359
443 public abstract class ByStat : IBestiarySortStep, IEntrySortStep<BestiaryEntry>, IComparer<BestiaryEntry>
444 {
445 // Token: 0x17000820 RID: 2080
446 // (get) Token: 0x06004753 RID: 18259 RVA: 0x0025E3C4 File Offset: 0x0025C5C4
448 {
449 get
450 {
451 }
452 }
453
454 // Token: 0x06004754 RID: 18260 RVA: 0x0025E3D4 File Offset: 0x0025C5D4
456 {
457 /*
458An exception occurred when decompiling this method (06004754)
459
460ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.GameContent.Bestiary.SortingSteps/ByStat::Compare(Terraria.GameContent.Bestiary.BestiaryEntry,Terraria.GameContent.Bestiary.BestiaryEntry)
461
462 ---> System.Exception: Basic block has to end with unconditional control flow.
463{
464 IL_001A:
465 brtrue(IL_001A, ldloc:int64[exp:bool](var_0_09))
466}
467
468 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
469 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
470 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
471 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
472 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
473 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
474 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
475 --- End of inner exception stack trace ---
476 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
477 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
478*/;
479 }
480
481 // Token: 0x06004755 RID: 18261
483
484 // Token: 0x06004756 RID: 18262
485 public abstract string GetDisplayNameKey();
486
487 // Token: 0x06004757 RID: 18263 RVA: 0x0025E400 File Offset: 0x0025C600
489 {
490 if (element != null)
491 {
492 return;
493 }
494 }
495
496 // Token: 0x06004758 RID: 18264 RVA: 0x0025E414 File Offset: 0x0025C614
497 protected ByStat()
498 {
499 }
500
501 // Token: 0x06004759 RID: 18265 RVA: 0x0025E428 File Offset: 0x0025C628
504 {
505 return this.IsAStatsCardINeed(element);
506 }
507
508 // Token: 0x0600475A RID: 18266 RVA: 0x0025E43C File Offset: 0x0025C63C
511 {
512 return this.IsAStatsCardINeed(element);
513 }
514 }
515
516 // Token: 0x02000938 RID: 2360
518 {
519 // Token: 0x0600475B RID: 18267 RVA: 0x0025E450 File Offset: 0x0025C650
521 {
522 int damage = cardX.Damage;
523 int num;
524 return num;
525 }
526
527 // Token: 0x0600475C RID: 18268 RVA: 0x0025E468 File Offset: 0x0025C668
528 public override string GetDisplayNameKey()
529 {
530 return "BestiaryInfo.Sort_Attack";
531 }
532
533 // Token: 0x0600475D RID: 18269 RVA: 0x0025E47C File Offset: 0x0025C67C
534 public ByAttack()
535 {
536 }
537 }
538
539 // Token: 0x02000939 RID: 2361
541 {
542 // Token: 0x0600475E RID: 18270 RVA: 0x0025E490 File Offset: 0x0025C690
544 {
545 int defense = cardX.Defense;
546 int num;
547 return num;
548 }
549
550 // Token: 0x0600475F RID: 18271 RVA: 0x0025E4A8 File Offset: 0x0025C6A8
551 public override string GetDisplayNameKey()
552 {
553 return "BestiaryInfo.Sort_Defense";
554 }
555
556 // Token: 0x06004760 RID: 18272 RVA: 0x0025E4BC File Offset: 0x0025C6BC
557 public ByDefense()
558 {
559 }
560 }
561
562 // Token: 0x0200093A RID: 2362
564 {
565 // Token: 0x06004761 RID: 18273 RVA: 0x0025E4D0 File Offset: 0x0025C6D0
567 {
568 float monetaryValue = cardX.MonetaryValue;
569 int num;
570 return num;
571 }
572
573 // Token: 0x06004762 RID: 18274 RVA: 0x0025E4E8 File Offset: 0x0025C6E8
574 public override string GetDisplayNameKey()
575 {
576 return "BestiaryInfo.Sort_Coins";
577 }
578
579 // Token: 0x06004763 RID: 18275 RVA: 0x0025E4FC File Offset: 0x0025C6FC
580 public ByCoins()
581 {
582 }
583 }
584
585 // Token: 0x0200093B RID: 2363
586 public class ByHP : SortingSteps.ByStat
587 {
588 // Token: 0x06004764 RID: 18276 RVA: 0x0025E510 File Offset: 0x0025C710
590 {
591 int lifeMax = cardX.LifeMax;
592 int num;
593 return num;
594 }
595
596 // Token: 0x06004765 RID: 18277 RVA: 0x0025E528 File Offset: 0x0025C728
597 public override string GetDisplayNameKey()
598 {
599 return "BestiaryInfo.Sort_HitPoints";
600 }
601
602 // Token: 0x06004766 RID: 18278 RVA: 0x0025E53C File Offset: 0x0025C73C
603 public ByHP()
604 {
605 }
606 }
607 }
608}
class f__AnonymousType0<< Count > j__TPar
IBestiaryUICollectionInfoProvider UIInfoProvider
int Compare(BestiaryEntry x, BestiaryEntry y)
override int Compare(NPCStatsReportInfoElement cardX, NPCStatsReportInfoElement cardY)
override int Compare(NPCStatsReportInfoElement cardX, NPCStatsReportInfoElement cardY)
override int Compare(NPCStatsReportInfoElement cardX, NPCStatsReportInfoElement cardY)
override int Compare(NPCStatsReportInfoElement cardX, NPCStatsReportInfoElement cardY)
int Compare(BestiaryEntry x, BestiaryEntry y)
int Compare(BestiaryEntry x, BestiaryEntry y)
bool< Compare > b__2_1(IBestiaryInfoElement element)
bool IsAStatsCardINeed(IBestiaryInfoElement element)
bool< Compare > b__2_0(IBestiaryInfoElement element)
int Compare(NPCStatsReportInfoElement cardX, NPCStatsReportInfoElement cardY)
int Compare(BestiaryEntry x, BestiaryEntry y)
static string GetTextValue(string key)
Definition Language.cs:54