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
Point16.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000649 RID: 1609
8 public struct Point16
9 {
10 // Token: 0x060036DC RID: 14044 RVA: 0x00220B60 File Offset: 0x0021ED60
11 public Point16(Point point)
12 {
13 this.X = point;
14 }
15
16 // Token: 0x060036DD RID: 14045 RVA: 0x00220B74 File Offset: 0x0021ED74
17 public Point16(int X, int Y)
18 {
19 this.X = (short)X;
20 this.Y = (short)Y;
21 }
22
23 // Token: 0x060036DE RID: 14046 RVA: 0x00220B90 File Offset: 0x0021ED90
24 public Point16(short X, short Y)
25 {
26 this.X = X;
27 this.Y = Y;
28 }
29
30 // Token: 0x060036DF RID: 14047 RVA: 0x000021DB File Offset: 0x000003DB
31 public static Point16 Max(int firstX, int firstY, int secondX, int secondY)
32 {
33 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
34 }
35
36 // Token: 0x060036E0 RID: 14048 RVA: 0x00220BAC File Offset: 0x0021EDAC
37 public Point16 Max(int compareX, int compareY)
38 {
39 return ref this;
40 }
41
42 // Token: 0x060036E1 RID: 14049 RVA: 0x00220BBC File Offset: 0x0021EDBC
44 {
45 return ref this;
46 }
47
48 // Token: 0x060036E2 RID: 14050 RVA: 0x000021DB File Offset: 0x000003DB
49 public static bool operator ==(Point16 first, Point16 second)
50 {
51 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
52 }
53
54 // Token: 0x060036E3 RID: 14051 RVA: 0x000021DB File Offset: 0x000003DB
55 public static bool operator !=(Point16 first, Point16 second)
56 {
57 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
58 }
59
60 // Token: 0x060036E4 RID: 14052 RVA: 0x00220BCC File Offset: 0x0021EDCC
61 public override bool Equals(object obj)
62 {
63 short y = this.Y;
64 throw new InvalidCastException();
65 }
66
67 // Token: 0x060036E5 RID: 14053 RVA: 0x00220BE8 File Offset: 0x0021EDE8
68 public override int GetHashCode()
69 {
70 /*
71An exception occurred when decompiling this method (060036E5)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.DataStructures.Point16::GetHashCode()
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:int16(var_0_06, ldfld:int16(Point16::Y, ldloc:valuetype Terraria.DataStructures.Point16&(this)))
79}
80
81 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
82 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
83 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
84 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
85 --- End of inner exception stack trace ---
86 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
87 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
88*/;
89 }
90
91 // Token: 0x060036E6 RID: 14054 RVA: 0x00220BFC File Offset: 0x0021EDFC
92 public override string ToString()
93 {
94 short y = this.Y;
95 string text;
96 return text;
97 }
98
99 // Token: 0x060036E7 RID: 14055 RVA: 0x00220C14 File Offset: 0x0021EE14
100 // Note: this type is marked as 'beforefieldinit'.
101 static Point16()
102 {
103 }
104
105 // Token: 0x040077EE RID: 30702
106 public readonly short X;
107
108 // Token: 0x040077EF RID: 30703
109 public readonly short Y;
110
111 // Token: 0x040077F0 RID: 30704
112 public static Point16 Zero;
113
114 // Token: 0x040077F1 RID: 30705
115 public static Point16 NegativeOne;
116 }
117}
class f__AnonymousType0<< Count > j__TPar
static bool operator!=(Point16 first, Point16 second)
Definition Point16.cs:55
static bool operator==(Point16 first, Point16 second)
Definition Point16.cs:49
override string ToString()
Definition Point16.cs:92
Point16 Max(Point16 compareTo)
Definition Point16.cs:43
Point16(short X, short Y)
Definition Point16.cs:24
override bool Equals(object obj)
Definition Point16.cs:61
static Point16 Max(int firstX, int firstY, int secondX, int secondY)
Definition Point16.cs:31
Point16 Max(int compareX, int compareY)
Definition Point16.cs:37