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
InputControl.cs
Go to the documentation of this file.
1using System;
3
4namespace InControl
5{
6 // Token: 0x0200001E RID: 30
8 {
9 // Token: 0x1700004D RID: 77
10 // (get) Token: 0x06000130 RID: 304 RVA: 0x000045FC File Offset: 0x000027FC
11 // (set) Token: 0x06000131 RID: 305 RVA: 0x00004610 File Offset: 0x00002810
12 public string Handle
13 {
15 get
16 {
17 return this.<Handle>k__BackingField;
18 }
20 protected set
21 {
23 }
24 }
25
26 // Token: 0x1700004E RID: 78
27 // (get) Token: 0x06000132 RID: 306 RVA: 0x00004624 File Offset: 0x00002824
28 // (set) Token: 0x06000133 RID: 307 RVA: 0x00004638 File Offset: 0x00002838
30 {
32 get
33 {
34 return this.<Target>k__BackingField;
35 }
37 protected set
38 {
40 }
41 }
42
43 // Token: 0x1700004F RID: 79
44 // (get) Token: 0x06000134 RID: 308 RVA: 0x0000464C File Offset: 0x0000284C
45 // (set) Token: 0x06000135 RID: 309 RVA: 0x00004660 File Offset: 0x00002860
46 public bool IsButton
47 {
49 get
50 {
51 return this.<IsButton>k__BackingField;
52 }
54 protected set
55 {
56 }
57 }
58
59 // Token: 0x17000050 RID: 80
60 // (get) Token: 0x06000136 RID: 310 RVA: 0x00004670 File Offset: 0x00002870
61 // (set) Token: 0x06000137 RID: 311 RVA: 0x00004684 File Offset: 0x00002884
62 public bool IsAnalog
63 {
65 get
66 {
67 return this.<IsAnalog>k__BackingField;
68 }
70 protected set
71 {
72 }
73 }
74
75 // Token: 0x06000138 RID: 312 RVA: 0x00004694 File Offset: 0x00002894
76 private InputControl()
77 {
78 this.sensitivity = (float)16256;
79 this.upperDeadZone = (float)16256;
80 base..ctor();
81 this.Handle = "None";
82 }
83
84 // Token: 0x06000139 RID: 313 RVA: 0x000046C8 File Offset: 0x000028C8
85 public InputControl(string handle, InputControlType target)
86 {
87 this.sensitivity = (float)16256;
88 this.upperDeadZone = (float)16256;
89 base..ctor();
90 this.Handle = handle;
91 this.Target = target;
92 if (16256 == 0)
93 {
94 }
95 bool flag = Utility.TargetIsButton(target);
96 this.<IsButton>k__BackingField = 16256 != 0;
97 this.<IsAnalog>k__BackingField = 16256 != 0;
98 }
99
100 // Token: 0x0600013A RID: 314 RVA: 0x00004724 File Offset: 0x00002924
101 public InputControl(string handle, InputControlType target, bool passive)
102 {
103 }
104
105 // Token: 0x0600013B RID: 315 RVA: 0x00004734 File Offset: 0x00002934
106 internal void SetZeroTick()
107 {
108 ulong <UpdateTick>k__BackingField = this.<UpdateTick>k__BackingField;
110 }
111
112 // Token: 0x17000051 RID: 81
113 // (get) Token: 0x0600013C RID: 316 RVA: 0x00004750 File Offset: 0x00002950
114 internal bool IsOnZeroTick
115 {
116 get
117 {
118 /*
119An exception occurred when decompiling this method (0600013C)
120
121ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.InputControl::get_IsOnZeroTick()
122
123 ---> System.Exception: Basic block has to end with unconditional control flow.
124{
125 Block_0:
126 stloc:uint64(var_0_06, ldfld:uint64(OneAxisInputControl::<UpdateTick>k__BackingField, ldloc:InputControl[exp:OneAxisInputControl](this)))
127 stloc:uint64(var_1_0D, ldfld:uint64(InputControl::zeroTick, ldloc:InputControl(this)))
128}
129
130 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
131 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
132 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
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 88
134 --- End of inner exception stack trace ---
135 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
136 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
137*/;
138 }
139 }
140
141 // Token: 0x17000052 RID: 82
142 // (get) Token: 0x0600013D RID: 317 RVA: 0x0000476C File Offset: 0x0000296C
143 public bool IsStandard
144 {
145 get
146 {
148 if (!true)
149 {
150 }
152 }
153 }
154
155 // Token: 0x0600013E RID: 318 RVA: 0x0000478C File Offset: 0x0000298C
156 // Note: this type is marked as 'beforefieldinit'.
158 {
159 }
160
161 // Token: 0x04000127 RID: 295
163
164 // Token: 0x04000128 RID: 296
166 private string <Handle>k__BackingField;
167
168 // Token: 0x04000129 RID: 297
170 private InputControlType <Target>k__BackingField;
171
172 // Token: 0x0400012A RID: 298
173 public bool Passive;
174
175 // Token: 0x0400012B RID: 299
177 private bool <IsButton>k__BackingField;
178
179 // Token: 0x0400012C RID: 300
181 private bool <IsAnalog>k__BackingField;
182
183 // Token: 0x0400012D RID: 301
185 }
186}
class f__AnonymousType0<< Count > j__TPar
InputControl(string handle, InputControlType target, bool passive)
InputControlType Target
bool< IsButton > k__BackingField
static readonly InputControl Null
InputControl(string handle, InputControlType target)
InputControlType< Target > k__BackingField
bool< IsAnalog > k__BackingField
string< Handle > k__BackingField
static bool TargetIsStandard(InputControlType target)
Definition Utility.cs:152
static bool TargetIsButton(InputControlType target)
Definition Utility.cs:147