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
CustomFloatCondition.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x020009AB RID: 2475
11 {
12 // Token: 0x1700084B RID: 2123
13 // (get) Token: 0x06004939 RID: 18745 RVA: 0x00261D54 File Offset: 0x0025FF54
14 // (set) Token: 0x0600493A RID: 18746 RVA: 0x00261D68 File Offset: 0x0025FF68
15 public float Value
16 {
17 get
18 {
19 /*
20An exception occurred when decompiling this method (06004939)
21
22ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.Achievements.CustomFloatCondition::get_Value()
23
24 ---> System.Exception: Basic block has to end with unconditional control flow.
25{
26 Block_0:
27 stloc:float32(var_0_06, ldfld:float32(CustomFloatCondition::_value, ldloc:CustomFloatCondition(this)))
28}
29
30 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
31 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
32 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
33 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
34 --- End of inner exception stack trace ---
35 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
36 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
37*/;
38 }
39 set
40 {
41 int num = 1;
42 float maxValue = this._maxValue;
43 if (num == 0)
44 {
45 }
46 if (this._tracker != null)
47 {
48 }
49 float maxValue2 = this._maxValue;
50 }
51 }
52
53 // Token: 0x0600493B RID: 18747 RVA: 0x00261D98 File Offset: 0x0025FF98
54 private CustomFloatCondition(string name, float maxValue)
55 : base(name)
56 {
57 }
58
59 // Token: 0x0600493C RID: 18748 RVA: 0x00261DAC File Offset: 0x0025FFAC
60 public override void Clear()
61 {
62 base.Clear();
63 }
64
65 // Token: 0x0600493D RID: 18749 RVA: 0x00261DC0 File Offset: 0x0025FFC0
66 public override void Load(JObject state)
67 {
68 base.Load(state);
69 float num = (float)state["Value"];
70 if (this._tracker != null)
71 {
72 return;
73 }
74 }
75
76 // Token: 0x0600493E RID: 18750 RVA: 0x00261DF4 File Offset: 0x0025FFF4
78 {
79 /*
80An exception occurred when decompiling this method (0600493E)
81
82ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Achievements.IAchievementTracker Terraria.GameContent.Achievements.CustomFloatCondition::CreateAchievementTracker()
83
84 ---> System.Exception: Basic block has to end with unconditional control flow.
85{
86 Block_0:
87 stloc:float32(var_0_06, ldfld:float32(CustomFloatCondition::_maxValue, ldloc:CustomFloatCondition(this)))
88}
89
90 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
91 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
92 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
93 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
94 --- End of inner exception stack trace ---
95 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
96 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
97*/;
98 }
99
100 // Token: 0x0600493F RID: 18751 RVA: 0x000021DB File Offset: 0x000003DB
101 public static AchievementCondition Create(string name, float maxValue)
102 {
103 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
104 }
105
106 // Token: 0x06004940 RID: 18752 RVA: 0x00261E08 File Offset: 0x00260008
107 public override void Complete()
108 {
109 if (this._tracker != null)
110 {
111 float maxValue = this._maxValue;
112 }
113 float maxValue2 = this._maxValue;
115 base.Complete();
116 }
117
118 // Token: 0x04008438 RID: 33848
119 [JsonProperty("Value")]
120 private float _value;
121
122 // Token: 0x04008439 RID: 33849
123 private float _maxValue;
124 }
125}
class f__AnonymousType0<< Count > j__TPar
static AchievementCondition Create(string name, float maxValue)