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
Point.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x0200032C RID: 812
8 public struct Point : IEquatable<Point>
9 {
10 // Token: 0x170001DF RID: 479
11 // (get) Token: 0x06001323 RID: 4899 RVA: 0x0005C890 File Offset: 0x0005AA90
12 public static Point Zero
13 {
14 get
15 {
16 if (!true)
17 {
18 }
19 return 1;
20 }
21 }
22
23 // Token: 0x06001324 RID: 4900 RVA: 0x0005C8A4 File Offset: 0x0005AAA4
24 public Point(int x, int y)
25 {
26 this.X = x;
27 }
28
29 // Token: 0x06001325 RID: 4901 RVA: 0x000021DB File Offset: 0x000003DB
30 public static bool operator ==(Point a, Point b)
31 {
32 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
33 }
34
35 // Token: 0x06001326 RID: 4902 RVA: 0x000021DB File Offset: 0x000003DB
36 public static bool operator !=(Point a, Point b)
37 {
38 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
39 }
40
41 // Token: 0x06001327 RID: 4903 RVA: 0x0005C8B8 File Offset: 0x0005AAB8
42 public bool Equals(Point other)
43 {
44 /*
45An exception occurred when decompiling this method (06001327)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Point::Equals(Microsoft.Xna.Framework.Point)
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 Block_0:
52 stloc:int32(var_0_06, ldfld:int32(Point::Y, ldloc:valuetype Microsoft.Xna.Framework.Point&(this)))
53}
54
55 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
56 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
57 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
58 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
59 --- End of inner exception stack trace ---
60 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
61 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
62*/;
63 }
64
65 // Token: 0x06001328 RID: 4904 RVA: 0x0005C8D0 File Offset: 0x0005AAD0
66 public override bool Equals(object obj)
67 {
68 if (obj != null)
69 {
70 int y = this.Y;
71 return;
72 }
73 }
74
75 // Token: 0x06001329 RID: 4905 RVA: 0x0005C8E8 File Offset: 0x0005AAE8
76 public override int GetHashCode()
77 {
78 /*
79An exception occurred when decompiling this method (06001329)
80
81ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.Point::GetHashCode()
82
83 ---> System.Exception: Basic block has to end with unconditional control flow.
84{
85 Block_0:
86 stloc:int32(var_0_06, ldfld:int32(Point::X, ldloc:valuetype Microsoft.Xna.Framework.Point&(this)))
87}
88
89 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
90 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
91 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
92 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
93 --- End of inner exception stack trace ---
94 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
95 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
96*/;
97 }
98
99 // Token: 0x0600132A RID: 4906 RVA: 0x0005C8FC File Offset: 0x0005AAFC
100 public override string ToString()
101 {
102 int y = this.Y;
103 string text;
104 return text;
105 }
106
107 // Token: 0x0600132B RID: 4907 RVA: 0x0005C914 File Offset: 0x0005AB14
108 // Note: this type is marked as 'beforefieldinit'.
109 static Point()
110 {
111 }
112
113 // Token: 0x04002265 RID: 8805
114 private static Point zeroPoint;
115
116 // Token: 0x04002266 RID: 8806
117 public int X;
118
119 // Token: 0x04002267 RID: 8807
120 public int Y;
121 }
122}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(Point a, Point b)
Definition Point.cs:30
bool Equals(Point other)
Definition Point.cs:42
override bool Equals(object obj)
Definition Point.cs:66
override int GetHashCode()
Definition Point.cs:76
override string ToString()
Definition Point.cs:100
static bool operator!=(Point a, Point b)
Definition Point.cs:36