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
PotionOfReturnSmartInteractCandidateProvider.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000850 RID: 2128
9 {
10 // Token: 0x0600433A RID: 17210 RVA: 0x0024DC70 File Offset: 0x0024BE70
12 {
13 if (!true)
14 {
15 }
17 }
18
19 // Token: 0x0600433B RID: 17211 RVA: 0x0024DC88 File Offset: 0x0024BE88
21 {
22 float x = settings.mousevec.X;
23 float y = settings.mousevec.Y;
24 float x2 = settings.mousevec.X;
25 float y2 = settings.mousevec.Y;
26 int lx = settings.LX;
27 int hx = settings.HX;
28 int ly = settings.LY;
29 int hy = settings.HY;
30 this._candidate.<DistanceFromCursor>k__BackingField = y;
31 return true;
32 }
33
34 // Token: 0x0600433C RID: 17212 RVA: 0x0024DD00 File Offset: 0x0024BF00
38
39 // Token: 0x0400815E RID: 33118
41
42 // Token: 0x02000851 RID: 2129
44 {
45 // Token: 0x170007CA RID: 1994
46 // (get) Token: 0x0600433D RID: 17213 RVA: 0x0024DD14 File Offset: 0x0024BF14
47 // (set) Token: 0x0600433E RID: 17214 RVA: 0x0024DD28 File Offset: 0x0024BF28
48 public float DistanceFromCursor
49 {
51 get
52 {
53 /*
54An exception occurred when decompiling this method (0600433D)
55
56ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.GameContent.ObjectInteractions.PotionOfReturnSmartInteractCandidateProvider/ReusableCandidate::get_DistanceFromCursor()
57
58 ---> System.Exception: Basic block has to end with unconditional control flow.
59{
60 Block_0:
61 stloc:float32(var_0_06, ldfld:float32(ReusableCandidate::<DistanceFromCursor>k__BackingField, ldloc:ReusableCandidate(this)))
62}
63
64 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
65 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
66 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
67 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
68 --- End of inner exception stack trace ---
69 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
70 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
71*/;
72 }
74 private set
75 {
76 }
77 }
78
79 // Token: 0x0600433F RID: 17215 RVA: 0x0024DD38 File Offset: 0x0024BF38
80 public void WinCandidacy()
81 {
82 if (!true)
83 {
84 }
87 }
88
89 // Token: 0x06004340 RID: 17216 RVA: 0x0024DD54 File Offset: 0x0024BF54
90 public void Reuse(float distanceFromCursor)
91 {
92 }
93
94 // Token: 0x06004341 RID: 17217 RVA: 0x0024DD64 File Offset: 0x0024BF64
96 {
97 }
98
99 // Token: 0x0400815F RID: 33119
101 private float <DistanceFromCursor>k__BackingField;
102 }
103 }
104}
class f__AnonymousType0<< Count > j__TPar
bool ProvideCandidate(SmartInteractScanSettings settings, [Out] ISmartInteractCandidate candidate)