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
ShimmerTransforms.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x020007EB RID: 2027
7 public static class ShimmerTransforms
8 {
9 // Token: 0x06004123 RID: 16675 RVA: 0x00244BF0 File Offset: 0x00242DF0
10 public static int GetDecraftingRecipeIndex(int type)
11 {
12 /*
13An exception occurred when decompiling this method (06004123)
14
15ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.GameContent.ShimmerTransforms::GetDecraftingRecipeIndex(System.Int32)
16
17 ---> System.Exception: Basic block has to end with unconditional control flow.
18{
19 Block_0:
20 brtrue(IL_0000, ldloc:int32[exp:bool](var_0_01))
21}
22
23 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
24 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
25 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
26 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
27 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
28 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
29 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
30 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
31 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
32 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
33 --- End of inner exception stack trace ---
34 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
35 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
36*/;
37 }
38
39 // Token: 0x06004124 RID: 16676 RVA: 0x00244C0C File Offset: 0x00242E0C
40 public static bool IsItemTransformLocked(int type)
41 {
42 int num = 1;
44 if (num == 0)
45 {
46 return;
47 }
48 }
49
50 // Token: 0x06004125 RID: 16677 RVA: 0x00244C2C File Offset: 0x00242E2C
51 public static void UpdateRecipeSets()
52 {
53 }
54
55 // Token: 0x020007EC RID: 2028
56 public static class RecipeSets
57 {
58 // Token: 0x04007EDA RID: 32474
59 public static bool[] PostSkeletron;
60
61 // Token: 0x04007EDB RID: 32475
62 public static bool[] PostGolem;
63 }
64
65 // Token: 0x020007ED RID: 2029
67 [Serializable]
68 private sealed class <>c
69 {
70 // Token: 0x06004126 RID: 16678 RVA: 0x00244C3C File Offset: 0x00242E3C
71 // Note: this type is marked as 'beforefieldinit'.
72 static <>c()
73 {
74 }
75
76 // Token: 0x06004127 RID: 16679 RVA: 0x00244C4C File Offset: 0x00242E4C
77 public <>c()
78 {
79 }
80
81 // Token: 0x06004128 RID: 16680 RVA: 0x00244C60 File Offset: 0x00242E60
82 internal bool <UpdateRecipeSets>b__3_0(Recipe r)
83 {
84 return r.ContainsIngredient(154);
85 }
86
87 // Token: 0x06004129 RID: 16681 RVA: 0x00244C78 File Offset: 0x00242E78
88 internal bool <UpdateRecipeSets>b__3_1(Recipe r)
89 {
90 return r.ContainsIngredient(1101);
91 }
92
93 // Token: 0x04007EDC RID: 32476
94 public static readonly ShimmerTransforms.<>c <>9;
95
96 // Token: 0x04007EDD RID: 32477
97 public static Func<Recipe, bool> <>9__3_0;
98
99 // Token: 0x04007EDE RID: 32478
100 public static Func<Recipe, bool> <>9__3_1;
101 }
102 }
103}
class f__AnonymousType0<< Count > j__TPar
bool ContainsIngredient(int itemType)
Definition Recipe.cs:981