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
MouseState.cs
Go to the documentation of this file.
1using System;
3
5{
6 // Token: 0x02000359 RID: 857
7 public struct MouseState
8 {
9 // Token: 0x0600163B RID: 5691 RVA: 0x00061AD8 File Offset: 0x0005FCD8
20
21 // Token: 0x0600163C RID: 5692 RVA: 0x00061B1C File Offset: 0x0005FD1C
32
33 // Token: 0x0600163D RID: 5693 RVA: 0x00061B60 File Offset: 0x0005FD60
34 public static bool operator ==(MouseState left, MouseState right)
35 {
36 /*
37An exception occurred when decompiling this method (0600163D)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Input.MouseState::op_Equality(Microsoft.Xna.Framework.Input.MouseState,Microsoft.Xna.Framework.Input.MouseState)
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 Block_0:
44 stloc:int32(var_0_06, ldfld:int32(MouseState::_y, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
45 stloc:ButtonState(var_1_0D, ldfld:ButtonState(MouseState::_leftButton, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
46 stloc:ButtonState(var_2_14, ldfld:ButtonState(MouseState::_middleButton, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
47 stloc:ButtonState(var_3_1B, ldfld:ButtonState(MouseState::_rightButton, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
48 stloc:int32(var_4_22, ldfld:int32(MouseState::_scrollWheelValue, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
49 stloc:int32(var_5_2A, ldfld:int32(MouseState::_horizontalScrollWheelValue, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
50 stloc:ButtonState(var_6_32, ldfld:ButtonState(MouseState::_xButton1, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
51 stloc:ButtonState(var_7_3A, ldfld:ButtonState(MouseState::_xButton2, ldloc:MouseState[exp:valuetype Microsoft.Xna.Framework.Input.MouseState&](left)))
52}
53
54 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
55 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
56 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
57 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
58 --- End of inner exception stack trace ---
59 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
60 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
61*/;
62 }
63
64 // Token: 0x0600163E RID: 5694 RVA: 0x00061BAC File Offset: 0x0005FDAC
77
78 // Token: 0x0600163F RID: 5695 RVA: 0x00061BF8 File Offset: 0x0005FDF8
79 public override bool Equals(object obj)
80 {
81 /*
82An exception occurred when decompiling this method (0600163F)
83
84ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Input.MouseState::Equals(System.Object)
85
86 ---> System.Exception: Basic block has to end with unconditional control flow.
87{
88 IL_0003:
89 stloc:ButtonState(var_1_0B, ldfld:ButtonState(MouseState::_xButton1, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
90 stloc:int32(var_2_12, ldfld:int32(MouseState::_horizontalScrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
91 stloc:int32(var_3_19, ldfld:int32(MouseState::_horizontalScrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
92 stloc:ButtonState(var_4_20, ldfld:ButtonState(MouseState::_rightButton, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
93 stloc:ButtonState(var_5_28, ldfld:ButtonState(MouseState::_xButton1, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
94 stloc:int32(var_6_30, ldfld:int32(MouseState::_scrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
95 stloc:ButtonState(var_7_38, ldfld:ButtonState(MouseState::_rightButton, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
96 stloc:int32(var_8_40, ldfld:int32(MouseState::_x, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
97 stloc:int32(var_9_48, ldfld:int32(MouseState::_scrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
98}
99
100 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
101 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
102 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
103 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
104 --- End of inner exception stack trace ---
105 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
106 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
107*/;
108 }
109
110 // Token: 0x06001640 RID: 5696 RVA: 0x00061C54 File Offset: 0x0005FE54
111 public override int GetHashCode()
112 {
113 /*
114An exception occurred when decompiling this method (06001640)
115
116ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.Input.MouseState::GetHashCode()
117
118 ---> System.Exception: Basic block has to end with unconditional control flow.
119{
120 Block_0:
121 stloc:int32(var_0_06, ldfld:int32(MouseState::_x, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
122 stloc:int32(var_1_0D, ldfld:int32(MouseState::_scrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
123 stloc:int32(var_2_14, ldfld:int32(MouseState::_scrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
124 stloc:ButtonState(var_3_1B, ldfld:ButtonState(MouseState::_rightButton, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
125 stloc:ButtonState(var_4_22, ldfld:ButtonState(MouseState::_xButton2, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
126 stloc:ButtonState(var_5_2A, ldfld:ButtonState(MouseState::_rightButton, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
127 stloc:ButtonState(var_6_32, ldfld:ButtonState(MouseState::_xButton1, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
128 stloc:ButtonState(var_7_3A, ldfld:ButtonState(MouseState::_xButton1, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
129}
130
131 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
132 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
133 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
134 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
135 --- End of inner exception stack trace ---
136 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
137 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
138*/;
139 }
140
141 // Token: 0x17000287 RID: 647
142 // (get) Token: 0x06001641 RID: 5697 RVA: 0x000021DB File Offset: 0x000003DB
143 // (set) Token: 0x06001642 RID: 5698 RVA: 0x00061C9C File Offset: 0x0005FE9C
144 public int X
145 {
146 get
147 {
148 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
149 }
150 internal set
151 {
152 this._x = value;
153 }
154 }
155
156 // Token: 0x17000288 RID: 648
157 // (get) Token: 0x06001643 RID: 5699 RVA: 0x00061CB0 File Offset: 0x0005FEB0
158 // (set) Token: 0x06001644 RID: 5700 RVA: 0x00061CC4 File Offset: 0x0005FEC4
159 public int Y
160 {
161 get
162 {
163 return this._y;
164 }
165 internal set
166 {
167 this._y = value;
168 }
169 }
170
171 // Token: 0x17000289 RID: 649
172 // (get) Token: 0x06001645 RID: 5701 RVA: 0x00061CD8 File Offset: 0x0005FED8
174 {
175 get
176 {
177 /*
178An exception occurred when decompiling this method (06001645)
179
180ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Point Microsoft.Xna.Framework.Input.MouseState::get_Position()
181
182 ---> System.Exception: Basic block has to end with unconditional control flow.
183{
184 Block_0:
185 stloc:int32(var_0_06, ldfld:int32(MouseState::_x, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
186 stloc:int32(var_1_0D, ldfld:int32(MouseState::_scrollWheelValue, ldloc:valuetype Microsoft.Xna.Framework.Input.MouseState&(this)))
187}
188
189 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
190 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
191 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
192 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
193 --- End of inner exception stack trace ---
194 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
195 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
196*/;
197 }
198 }
199
200 // Token: 0x1700028A RID: 650
201 // (get) Token: 0x06001646 RID: 5702 RVA: 0x00061CF4 File Offset: 0x0005FEF4
202 // (set) Token: 0x06001647 RID: 5703 RVA: 0x00061D08 File Offset: 0x0005FF08
204 {
205 get
206 {
207 return this._leftButton;
208 }
209 internal set
210 {
212 }
213 }
214
215 // Token: 0x1700028B RID: 651
216 // (get) Token: 0x06001648 RID: 5704 RVA: 0x00061D1C File Offset: 0x0005FF1C
217 // (set) Token: 0x06001649 RID: 5705 RVA: 0x00061D30 File Offset: 0x0005FF30
219 {
220 get
221 {
222 return this._middleButton;
223 }
224 internal set
225 {
227 }
228 }
229
230 // Token: 0x1700028C RID: 652
231 // (get) Token: 0x0600164A RID: 5706 RVA: 0x00061D44 File Offset: 0x0005FF44
232 // (set) Token: 0x0600164B RID: 5707 RVA: 0x00061D58 File Offset: 0x0005FF58
234 {
235 get
236 {
237 return this._rightButton;
238 }
239 internal set
240 {
242 }
243 }
244
245 // Token: 0x1700028D RID: 653
246 // (get) Token: 0x0600164C RID: 5708 RVA: 0x00061D6C File Offset: 0x0005FF6C
247 // (set) Token: 0x0600164D RID: 5709 RVA: 0x00061D80 File Offset: 0x0005FF80
249 {
250 get
251 {
252 return this._scrollWheelValue;
253 }
254 internal set
255 {
257 }
258 }
259
260 // Token: 0x1700028E RID: 654
261 // (get) Token: 0x0600164E RID: 5710 RVA: 0x00061D94 File Offset: 0x0005FF94
262 // (set) Token: 0x0600164F RID: 5711 RVA: 0x00061DA8 File Offset: 0x0005FFA8
264 {
265 get
266 {
267 return this._horizontalScrollWheelValue;
268 }
269 internal set
270 {
272 }
273 }
274
275 // Token: 0x1700028F RID: 655
276 // (get) Token: 0x06001650 RID: 5712 RVA: 0x00061DBC File Offset: 0x0005FFBC
277 // (set) Token: 0x06001651 RID: 5713 RVA: 0x00061DD0 File Offset: 0x0005FFD0
279 {
280 get
281 {
282 return this._xButton1;
283 }
284 internal set
285 {
287 }
288 }
289
290 // Token: 0x17000290 RID: 656
291 // (get) Token: 0x06001652 RID: 5714 RVA: 0x00061DE4 File Offset: 0x0005FFE4
292 // (set) Token: 0x06001653 RID: 5715 RVA: 0x00061DF8 File Offset: 0x0005FFF8
294 {
295 get
296 {
297 return this._xButton2;
298 }
299 internal set
300 {
302 }
303 }
304
305 // Token: 0x04002407 RID: 9223
306 private int _x;
307
308 // Token: 0x04002408 RID: 9224
309 private int _y;
310
311 // Token: 0x04002409 RID: 9225
312 private int _scrollWheelValue;
313
314 // Token: 0x0400240A RID: 9226
316
317 // Token: 0x0400240B RID: 9227
319
320 // Token: 0x0400240C RID: 9228
322
323 // Token: 0x0400240D RID: 9229
325
326 // Token: 0x0400240E RID: 9230
328
329 // Token: 0x0400240F RID: 9231
331 }
332}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(MouseState left, MouseState right)
Definition MouseState.cs:34
override bool Equals(object obj)
Definition MouseState.cs:79
static bool operator!=(MouseState left, MouseState right)
Definition MouseState.cs:65
MouseState(int x, int y, int scrollWheel, ButtonState leftButton, ButtonState middleButton, ButtonState rightButton, ButtonState xButton1, ButtonState xButton2)
Definition MouseState.cs:10
MouseState(int x, int y, int scrollWheel, ButtonState leftButton, ButtonState middleButton, ButtonState rightButton, ButtonState xButton1, ButtonState xButton2, int horizontalScrollWheel)
Definition MouseState.cs:22