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
Vector2Int.cs
Go to the documentation of this file.
1using System;
8
9namespace UnityEngine
10{
11 // Token: 0x020000CA RID: 202
14 [DefaultMember("Item")]
15 [NativeType("Runtime/Math/Vector2Int.h")]
16 public struct Vector2Int : IEquatable<Vector2Int>, IFormattable
17 {
18 // Token: 0x170000C0 RID: 192
19 // (get) Token: 0x060003A2 RID: 930 RVA: 0x000021B3 File Offset: 0x000003B3
20 // (set) Token: 0x060003A3 RID: 931 RVA: 0x000073A0 File Offset: 0x000055A0
21 public int x
22 {
23 get
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27 set
28 {
30 }
31 }
32
33 // Token: 0x170000C1 RID: 193
34 // (get) Token: 0x060003A4 RID: 932 RVA: 0x000073B4 File Offset: 0x000055B4
35 // (set) Token: 0x060003A5 RID: 933 RVA: 0x000073C8 File Offset: 0x000055C8
36 public int y
37 {
38 get
39 {
40 return this.m_Y;
41 }
42 set
43 {
45 }
46 }
47
48 // Token: 0x060003A6 RID: 934 RVA: 0x000073DC File Offset: 0x000055DC
49 public Vector2Int(int x, int y)
50 {
51 this.m_X = x;
52 }
53
54 // Token: 0x060003A7 RID: 935 RVA: 0x000073F0 File Offset: 0x000055F0
55 public static implicit operator Vector2(Vector2Int v)
56 {
57 Vector2 vector;
58 return vector;
59 }
60
61 // Token: 0x060003A8 RID: 936 RVA: 0x00007400 File Offset: 0x00005600
62 public override bool Equals(object other)
63 {
64 if (other != null)
65 {
66 int y = this.m_Y;
67 return;
68 }
69 }
70
71 // Token: 0x060003A9 RID: 937 RVA: 0x00007418 File Offset: 0x00005618
72 public bool Equals(Vector2Int other)
73 {
74 /*
75An exception occurred when decompiling this method (060003A9)
76
77ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean UnityEngine.Vector2Int::Equals(UnityEngine.Vector2Int)
78
79 ---> System.Exception: Basic block has to end with unconditional control flow.
80{
81 Block_0:
82 stloc:int32(var_0_06, ldfld:int32(Vector2Int::m_Y, ldloc:valuetype UnityEngine.Vector2Int&(this)))
83}
84
85 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
86 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
87 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
88 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
89 --- End of inner exception stack trace ---
90 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
91 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
92*/;
93 }
94
95 // Token: 0x060003AA RID: 938 RVA: 0x00007430 File Offset: 0x00005630
96 public override int GetHashCode()
97 {
98 int y = this.m_Y;
99 int num;
100 return num.GetHashCode();
101 }
102
103 // Token: 0x060003AB RID: 939 RVA: 0x0000744C File Offset: 0x0000564C
104 public override string ToString()
105 {
106 string text;
107 return text;
108 }
109
110 // Token: 0x060003AC RID: 940 RVA: 0x0000745C File Offset: 0x0000565C
112 {
113 if (formatProvider == null)
114 {
116 }
117 string text;
118 if (text == null || text != null)
119 {
120 int y = this.m_Y;
121 string text2;
122 if (text2 == null || text2 != null)
123 {
124 string text3;
125 return text3;
126 }
127 }
128 throw new ArrayTypeMismatchException();
129 }
130
131 // Token: 0x060003AD RID: 941 RVA: 0x00007494 File Offset: 0x00005694
132 // Note: this type is marked as 'beforefieldinit'.
133 static Vector2Int()
134 {
135 }
136
137 // Token: 0x04000389 RID: 905
138 private int m_X;
139
140 // Token: 0x0400038A RID: 906
141 private int m_Y;
142
143 // Token: 0x0400038B RID: 907
144 private static readonly Vector2Int s_Zero;
145
146 // Token: 0x0400038C RID: 908
147 private static readonly Vector2Int s_One;
148
149 // Token: 0x0400038D RID: 909
150 private static readonly Vector2Int s_Up;
151
152 // Token: 0x0400038E RID: 910
153 private static readonly Vector2Int s_Down;
154
155 // Token: 0x0400038F RID: 911
156 private static readonly Vector2Int s_Left;
157
158 // Token: 0x04000390 RID: 912
160 }
161}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
override string ToString()
bool Equals(Vector2Int other)
Definition Vector2Int.cs:72
static readonly Vector2Int s_One
static readonly Vector2Int s_Right
override bool Equals(object other)
Definition Vector2Int.cs:62
string ToString(string format, IFormatProvider formatProvider)
Vector2Int(int x, int y)
Definition Vector2Int.cs:49
override int GetHashCode()
Definition Vector2Int.cs:96
static readonly Vector2Int s_Zero
static readonly Vector2Int s_Up
static readonly Vector2Int s_Down
static readonly Vector2Int s_Left