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
LootSimulationItemCounter.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200085A RID: 2138
9 {
10 // Token: 0x0600436D RID: 17261 RVA: 0x0024E1E0 File Offset: 0x0024C3E0
12 {
13 }
14
15 // Token: 0x0600436E RID: 17262 RVA: 0x0024E1F4 File Offset: 0x0024C3F4
16 public void AddItem(int itemId, int amount, bool expert)
17 {
18 }
19
20 // Token: 0x0600436F RID: 17263 RVA: 0x0024E208 File Offset: 0x0024C408
21 public void Exclude(params int[] itemIds)
22 {
25 }
26
27 // Token: 0x06004370 RID: 17264 RVA: 0x0024E228 File Offset: 0x0024C428
28 public void IncreaseTimesAttempted(int amount, bool expert)
29 {
30 }
31
32 // Token: 0x06004371 RID: 17265 RVA: 0x0024E238 File Offset: 0x0024C438
33 public string PrintCollectedItems(bool expert)
34 {
40 if (totalTimesAttemptedExpert == 0L)
41 {
42 }
43 if (this != null || totalTimesAttemptedExpert == 0L)
44 {
45 }
46 return string.Join(",\n", itemCountsObtainedExpert);
47 }
48
49 // Token: 0x04008178 RID: 33144
50 private long[] _itemCountsObtained;
51
52 // Token: 0x04008179 RID: 33145
54
55 // Token: 0x0400817A RID: 33146
57
58 // Token: 0x0400817B RID: 33147
60
61 // Token: 0x0200085B RID: 2139
63 private sealed class <>c__DisplayClass8_0
64 {
65 // Token: 0x06004372 RID: 17266 RVA: 0x0024E27C File Offset: 0x0024C47C
67 {
68 }
69
70 // Token: 0x06004373 RID: 17267 RVA: 0x0024E290 File Offset: 0x0024C490
71 internal string <PrintCollectedItems>b__3(int itemId)
72 {
73 if (!true)
74 {
75 }
76 long[] array = this.collectionToUse;
77 long num = this.totalDropsAttempted;
78 string text;
79 return text;
80 }
81
82 // Token: 0x0400817C RID: 33148
83 public long[] collectionToUse;
84
85 // Token: 0x0400817D RID: 33149
86 public long totalDropsAttempted;
87 }
88
89 // Token: 0x0200085C RID: 2140
91 [Serializable]
92 private sealed class <>c
93 {
94 // Token: 0x06004374 RID: 17268 RVA: 0x0024E2B0 File Offset: 0x0024C4B0
95 // Note: this type is marked as 'beforefieldinit'.
96 static <>c()
97 {
98 }
99
100 // Token: 0x06004375 RID: 17269 RVA: 0x0024E2C0 File Offset: 0x0024C4C0
101 public <>c()
102 {
103 }
104
105 // Token: 0x06004376 RID: 17270 RVA: 0x000021DB File Offset: 0x000003DB
107 {
108 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
109 }
110
111 // Token: 0x06004377 RID: 17271 RVA: 0x000021DB File Offset: 0x000003DB
113 {
114 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
115 }
116
117 // Token: 0x06004378 RID: 17272 RVA: 0x0024E2D4 File Offset: 0x0024C4D4
119 {
120 /*
121An exception occurred when decompiling this method (06004378)
122
123ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.GameContent.LootSimulation.LootSimulationItemCounter/<>c::<PrintCollectedItems>b__8_2(<>f__AnonymousType3`2<System.Int32,System.Int64>)
124
125 ---> System.Exception: Basic block has to end with unconditional control flow.
126{
127 Block_0:
128 stloc:!0(var_0_06, ldfld:!'<itemId>j__TPar'[exp:!0]('<>f__AnonymousType3`2'::<itemId>i__Field, ldloc:class '<>f__AnonymousType3`2'<int32, int64>[exp:'<>f__AnonymousType3`2'](entry)))
129}
130
131 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
132 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
133 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
134 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
135 --- End of inner exception stack trace ---
136 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
137 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
138*/;
139 }
140
141 // Token: 0x0400817E RID: 33150
142 public static readonly LootSimulationItemCounter.<>c <>9;
143
144 // Token: 0x0400817F RID: 33151
146
147 // Token: 0x04008180 RID: 33152
148 public static Func<<>f__AnonymousType3<int, long>, bool> <>9__8_1;
149
150 // Token: 0x04008181 RID: 33153
151 public static Func<<>f__AnonymousType3<int, long>, int> <>9__8_2;
152 }
153 }
154}
class f__AnonymousType0<< Count > j__TPar