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
GamePadDPad.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x02000345 RID: 837
8 public struct GamePadDPad
9 {
10 // Token: 0x17000246 RID: 582
11 // (get) Token: 0x06001550 RID: 5456 RVA: 0x000021DB File Offset: 0x000003DB
12 // (set) Token: 0x06001551 RID: 5457 RVA: 0x0006037C File Offset: 0x0005E57C
14 {
16 readonly get
17 {
18 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
21 private set
22 {
24 }
25 }
26
27 // Token: 0x17000247 RID: 583
28 // (get) Token: 0x06001552 RID: 5458 RVA: 0x00060390 File Offset: 0x0005E590
29 // (set) Token: 0x06001553 RID: 5459 RVA: 0x000603A4 File Offset: 0x0005E5A4
31 {
33 readonly get
34 {
35 return this.<Left>k__BackingField;
36 }
38 private set
39 {
41 }
42 }
43
44 // Token: 0x17000248 RID: 584
45 // (get) Token: 0x06001554 RID: 5460 RVA: 0x000603B8 File Offset: 0x0005E5B8
46 // (set) Token: 0x06001555 RID: 5461 RVA: 0x000603CC File Offset: 0x0005E5CC
48 {
50 readonly get
51 {
52 return this.<Right>k__BackingField;
53 }
55 private set
56 {
58 }
59 }
60
61 // Token: 0x17000249 RID: 585
62 // (get) Token: 0x06001556 RID: 5462 RVA: 0x000603E0 File Offset: 0x0005E5E0
63 // (set) Token: 0x06001557 RID: 5463 RVA: 0x000603F4 File Offset: 0x0005E5F4
65 {
67 readonly get
68 {
69 return this.<Up>k__BackingField;
70 }
72 private set
73 {
74 this.<Up>k__BackingField = value;
75 }
76 }
77
78 // Token: 0x06001558 RID: 5464 RVA: 0x00060408 File Offset: 0x0005E608
85
86 // Token: 0x06001559 RID: 5465 RVA: 0x0006042C File Offset: 0x0005E62C
87 internal GamePadDPad(Buttons buttons)
88 {
89 }
90
91 // Token: 0x0600155A RID: 5466 RVA: 0x00060458 File Offset: 0x0005E658
92 public static bool operator ==(GamePadDPad left, GamePadDPad right)
93 {
94 }
95
96 // Token: 0x0600155B RID: 5467 RVA: 0x00060468 File Offset: 0x0005E668
97 public static bool operator !=(GamePadDPad left, GamePadDPad right)
98 {
99 return true;
100 }
101
102 // Token: 0x0600155C RID: 5468 RVA: 0x00060478 File Offset: 0x0005E678
103 public override bool Equals(object obj)
104 {
105 if (obj != null)
106 {
107 ButtonState buttonState = this.<Right>k__BackingField;
108 return;
109 }
110 }
111
112 // Token: 0x0600155D RID: 5469 RVA: 0x00060490 File Offset: 0x0005E690
113 public override int GetHashCode()
114 {
115 /*
116An exception occurred when decompiling this method (0600155D)
117
118ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Microsoft.Xna.Framework.Input.GamePadDPad::GetHashCode()
119
120 ---> System.Exception: Basic block has to end with unconditional control flow.
121{
122 Block_0:
123 stloc:ButtonState(var_0_06, ldfld:ButtonState(GamePadDPad::<Down>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.GamePadDPad&(this)))
124 stloc:ButtonState(var_1_0D, ldfld:ButtonState(GamePadDPad::<Right>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.GamePadDPad&(this)))
125 stloc:ButtonState(var_2_14, ldfld:ButtonState(GamePadDPad::<Right>k__BackingField, ldloc:valuetype Microsoft.Xna.Framework.Input.GamePadDPad&(this)))
126}
127
128 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
129 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
130 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
131 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
132 --- End of inner exception stack trace ---
133 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
134 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
135*/;
136 }
137
138 // Token: 0x0600155E RID: 5470 RVA: 0x000604B4 File Offset: 0x0005E6B4
139 public override string ToString()
140 {
141 ButtonState buttonState = this.<Left>k__BackingField;
144 string text;
145 string text2;
146 string text3;
147 string text4;
148 return text + text2 + text3 + text4;
149 }
150
151 // Token: 0x04002303 RID: 8963
153 private ButtonState <Down>k__BackingField;
154
155 // Token: 0x04002304 RID: 8964
157 private ButtonState <Left>k__BackingField;
158
159 // Token: 0x04002305 RID: 8965
161 private ButtonState <Right>k__BackingField;
162
163 // Token: 0x04002306 RID: 8966
165 private ButtonState <Up>k__BackingField;
166 }
167}
class f__AnonymousType0<< Count > j__TPar
static bool operator==(GamePadDPad left, GamePadDPad right)
static bool operator!=(GamePadDPad left, GamePadDPad right)
GamePadDPad(ButtonState upValue, ButtonState downValue, ButtonState leftValue, ButtonState rightValue)