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
JoystickState.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x0200034F RID: 847
8 public struct JoystickState
9 {
10 // Token: 0x17000261 RID: 609
11 // (get) Token: 0x060015BB RID: 5563 RVA: 0x000021DB File Offset: 0x000003DB
12 // (set) Token: 0x060015BC RID: 5564 RVA: 0x00060FE8 File Offset: 0x0005F1E8
13 public bool IsConnected
14 {
16 readonly get
17 {
18 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
21 internal set
22 {
23 }
24 }
25
26 // Token: 0x17000262 RID: 610
27 // (get) Token: 0x060015BD RID: 5565 RVA: 0x00060FF8 File Offset: 0x0005F1F8
28 // (set) Token: 0x060015BE RID: 5566 RVA: 0x0006100C File Offset: 0x0005F20C
29 public int[] Axes
30 {
32 readonly get
33 {
34 return this.<Axes>k__BackingField;
35 }
37 internal set
38 {
40 }
41 }
42
43 // Token: 0x17000263 RID: 611
44 // (get) Token: 0x060015BF RID: 5567 RVA: 0x00061020 File Offset: 0x0005F220
45 // (set) Token: 0x060015C0 RID: 5568 RVA: 0x00061034 File Offset: 0x0005F234
47 {
49 readonly get
50 {
51 return this.<Buttons>k__BackingField;
52 }
54 internal set
55 {
57 }
58 }
59
60 // Token: 0x17000264 RID: 612
61 // (get) Token: 0x060015C1 RID: 5569 RVA: 0x00061048 File Offset: 0x0005F248
62 // (set) Token: 0x060015C2 RID: 5570 RVA: 0x0006105C File Offset: 0x0005F25C
64 {
66 readonly get
67 {
68 return this.<Hats>k__BackingField;
69 }
71 internal set
72 {
74 }
75 }
76
77 // Token: 0x060015C3 RID: 5571 RVA: 0x00061070 File Offset: 0x0005F270
78 public static bool operator ==(JoystickState left, JoystickState right)
79 {
80 int[] array = left.<Axes>k__BackingField;
83 bool flag;
84 return flag;
85 }
86
87 // Token: 0x060015C4 RID: 5572 RVA: 0x00061098 File Offset: 0x0005F298
88 public static bool operator !=(JoystickState left, JoystickState right)
89 {
90 bool flag = left.<IsConnected>k__BackingField;
91 bool flag2;
92 return flag2;
93 }
94
95 // Token: 0x060015C5 RID: 5573 RVA: 0x000610B0 File Offset: 0x0005F2B0
96 public override bool Equals(object obj)
97 {
98 if (obj != null)
99 {
100 }
101 bool flag = this.<IsConnected>k__BackingField;
102 bool flag2;
103 return flag2;
104 }
105
106 // Token: 0x060015C6 RID: 5574 RVA: 0x000610CC File Offset: 0x0005F2CC
107 public override int GetHashCode()
108 {
109 /*
110An exception occurred when decompiling this method (060015C6)
111
112ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.Input.JoystickState::GetHashCode()
113
114 ---> System.Exception: Basic block has to end with unconditional control flow.
115{
116 Block_0:
117 stloc:int32[](var_0_06, ldfld:int32[](JoystickState::<Axes>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
118 stloc:valuetype Microsoft.Xna.Framework.Input.ButtonState[](var_6_1D, ldfld:valuetype Microsoft.Xna.Framework.Input.ButtonState[](JoystickState::<Buttons>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
119 stloc:ButtonState(var_8_2D, ldfld:ButtonState(JoystickHat::<Down>k__BackingField, ldfld:valuetype Microsoft.Xna.Framework.Input.JoystickHat[][exp:valuetype Microsoft.Xna.Framework.Input.JoystickHat&](JoystickState::<Hats>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this))))
120}
121
122 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
123 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
124 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
125 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
126 --- End of inner exception stack trace ---
127 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
128 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
129*/;
130 }
131
132 // Token: 0x060015C7 RID: 5575 RVA: 0x00061108 File Offset: 0x0005F308
133 public override string ToString()
134 {
135 /*
136An exception occurred when decompiling this method (060015C7)
137
138ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String Microsoft.Xna.Framework.Input.JoystickState::ToString()
139
140 ---> System.Exception: Basic block has to end with unconditional control flow.
141{
142 Block_0:
143 stloc:int32[](var_0_06, ldfld:int32[](JoystickState::<Axes>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
144 stloc:valuetype Microsoft.Xna.Framework.Input.ButtonState[](var_1_0D, ldfld:valuetype Microsoft.Xna.Framework.Input.ButtonState[](JoystickState::<Buttons>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
145 stloc:valuetype Microsoft.Xna.Framework.Input.JoystickHat[](var_2_14, ldfld:valuetype Microsoft.Xna.Framework.Input.JoystickHat[](JoystickState::<Hats>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
146 stloc:string(var_4_20, call:string(string::Concat, ldstr:string("[JoystickState: IsConnected="), ldloc:string(var_3)))
147 stloc:int32[](var_7_28, ldfld:int32[](JoystickState::<Axes>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
148 stloc:valuetype Microsoft.Xna.Framework.Input.ButtonState[](var_15_36, ldfld:valuetype Microsoft.Xna.Framework.Input.ButtonState[](JoystickState::<Buttons>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
149 stloc:valuetype Microsoft.Xna.Framework.Input.JoystickHat[](var_19_41, ldfld:valuetype Microsoft.Xna.Framework.Input.JoystickHat[](JoystickState::<Hats>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.JoystickState&(this)))
150 stloc:string(var_22_52, call:string(string::Concat, ldloc:string(var_21), ldstr:string(" ")))
151}
152
153 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
154 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
155 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
156 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
157 --- End of inner exception stack trace ---
158 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
159 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
160*/;
161 }
162
163 // Token: 0x0400232E RID: 9006
165 private bool <IsConnected>k__BackingField;
166
167 // Token: 0x0400232F RID: 9007
169 private int[] <Axes>k__BackingField;
170
171 // Token: 0x04002330 RID: 9008
174
175 // Token: 0x04002331 RID: 9009
178 }
179}
class f__AnonymousType0<< Count > j__TPar
static bool operator!=(JoystickState left, JoystickState right)
static bool operator==(JoystickState left, JoystickState right)