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
PlayerAction.cs
Go to the documentation of this file.
1using System;
4using System.IO;
7using UnityEngine;
8
9namespace InControl
10{
11 // Token: 0x02000011 RID: 17
13 {
14 // Token: 0x17000022 RID: 34
15 // (get) Token: 0x06000082 RID: 130 RVA: 0x00002E60 File Offset: 0x00001060
16 // (set) Token: 0x06000083 RID: 131 RVA: 0x00002E74 File Offset: 0x00001074
17 public string Name
18 {
20 get
21 {
22 return this.<Name>k__BackingField;
23 }
25 private set
26 {
28 }
29 }
30
31 // Token: 0x17000023 RID: 35
32 // (get) Token: 0x06000084 RID: 132 RVA: 0x00002E88 File Offset: 0x00001088
33 // (set) Token: 0x06000085 RID: 133 RVA: 0x00002E9C File Offset: 0x0000109C
35 {
37 get
38 {
39 return this.<Owner>k__BackingField;
40 }
42 private set
43 {
45 }
46 }
47
48 // Token: 0x14000001 RID: 1
49 // (add) Token: 0x06000086 RID: 134 RVA: 0x00002EB0 File Offset: 0x000010B0
50 // (remove) Token: 0x06000087 RID: 135 RVA: 0x00002ED8 File Offset: 0x000010D8
52 {
54 add
55 {
57 if (@delegate != null && @delegate == null)
58 {
59 return;
60 }
61 }
63 remove
64 {
66 if (@delegate != null && @delegate == null)
67 {
68 return;
69 }
70 }
71 }
72
73 // Token: 0x14000002 RID: 2
74 // (add) Token: 0x06000088 RID: 136 RVA: 0x00002F00 File Offset: 0x00001100
75 // (remove) Token: 0x06000089 RID: 137 RVA: 0x00002F24 File Offset: 0x00001124
77 {
79 add
80 {
81 if (Delegate.Combine(this.OnBindingsChanged, value) != null)
82 {
83 }
84 }
86 remove
87 {
88 if (Delegate.Remove(this.OnBindingsChanged, value) != null)
89 {
90 }
91 }
92 }
93
94 // Token: 0x17000024 RID: 36
95 // (get) Token: 0x0600008A RID: 138 RVA: 0x00002F48 File Offset: 0x00001148
96 // (set) Token: 0x0600008B RID: 139 RVA: 0x00002F5C File Offset: 0x0000115C
97 public object UserData
98 {
100 get
101 {
102 return this.<UserData>k__BackingField;
103 }
105 set
106 {
108 }
109 }
110
111 // Token: 0x0600008C RID: 140 RVA: 0x00002F70 File Offset: 0x00001170
112 public PlayerAction(string name, PlayerActionSet owner)
113 {
114 this.sensitivity = (float)16256;
115 this.upperDeadZone = (float)16256;
116 this.Name = name;
117 this.Owner = owner;
118 this.Raw = 16256 != 0;
121 owner.AddPlayerAction(this);
122 }
123
124 // Token: 0x0600008D RID: 141 RVA: 0x000025E1 File Offset: 0x000007E1
125 public void AddDefaultBinding(BindingSource binding)
126 {
127 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
128 }
129
130 // Token: 0x0600008E RID: 142 RVA: 0x00002FC8 File Offset: 0x000011C8
131 public void AddDefaultBinding(params Key[] keys)
132 {
133 }
134
135 // Token: 0x0600008F RID: 143 RVA: 0x00002FD8 File Offset: 0x000011D8
137 {
138 int includeSize = keyCombo.includeSize;
139 }
140
141 // Token: 0x06000090 RID: 144 RVA: 0x00002FEC File Offset: 0x000011EC
142 public void AddDefaultBinding(Mouse control)
143 {
144 }
145
146 // Token: 0x06000091 RID: 145 RVA: 0x00002FFC File Offset: 0x000011FC
148 {
149 }
150
151 // Token: 0x06000092 RID: 146 RVA: 0x0000300C File Offset: 0x0000120C
152 public bool AddBinding(BindingSource binding)
153 {
154 /*
155An exception occurred when decompiling this method (06000092)
156
157ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.PlayerAction::AddBinding(InControl.BindingSource)
158
159 ---> System.Exception: Basic block has to end with unconditional control flow.
160{
161 IL_0027:
162 stfld:PlayerAction(BindingSource::<BoundTo>k__BackingField, ldloc:BindingSource(binding), ldloc:string[exp:PlayerAction](var_2))
163 stloc:float32(var_4_3B, ldfld:float32(OneAxisInputControl::sensitivity, ldfld:PlayerAction[exp:OneAxisInputControl](BindingSource::<BoundTo>k__BackingField, ldloc:BindingSource(binding))))
164}
165
166 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
167 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
168 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
169 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
170 --- End of inner exception stack trace ---
171 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
172 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
173*/;
174 }
175
176 // Token: 0x06000093 RID: 147 RVA: 0x00003058 File Offset: 0x00001258
177 public bool InsertBindingAt(int index, BindingSource binding)
178 {
179 int size = this.visibleBindings._size;
180 return this.AddBinding(binding);
181 }
182
183 // Token: 0x06000094 RID: 148 RVA: 0x000030B4 File Offset: 0x000012B4
185 {
186 if (findBinding != null && withBinding != null)
187 {
188 PlayerAction <BoundTo>k__BackingField = withBinding.<BoundTo>k__BackingField;
189 string text2;
190 if (<BoundTo>k__BackingField != null)
191 {
192 string text = <BoundTo>k__BackingField.<Name>k__BackingField;
193 text2 = "Binding source is already bound to action " + text;
194 if ("Binding source is already bound to action " == null)
195 {
196 }
197 Debug.LogWarning(text2);
198 }
199 withBinding.<BoundTo>k__BackingField = text2;
200 }
201 return true;
202 }
203
204 // Token: 0x06000095 RID: 149 RVA: 0x00003104 File Offset: 0x00001304
205 public bool HasBinding(BindingSource binding)
206 {
207 while (binding != null)
208 {
210 if (bindingSource != null)
211 {
212 PlayerAction <BoundTo>k__BackingField = bindingSource.<BoundTo>k__BackingField;
213 return;
214 }
215 }
216 }
217
218 // Token: 0x06000096 RID: 150 RVA: 0x00003128 File Offset: 0x00001328
220 {
221 /*
222An exception occurred when decompiling this method (06000096)
223
224ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.BindingSource InControl.PlayerAction::FindBinding(InControl.BindingSource)
225
226 ---> System.Exception: Basic block has to end with unconditional control flow.
227{
228 Block_0:
229 stloc:class [mscorlib]System.Collections.Generic.List`1<class InControl.BindingSource>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.BindingSource>(PlayerAction::regularBindings, ldloc:PlayerAction(this)))
230}
231
232 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
233 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
234 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
235 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
236 --- End of inner exception stack trace ---
237 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
238 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
239*/;
240 }
241
242 // Token: 0x06000097 RID: 151 RVA: 0x000025E1 File Offset: 0x000007E1
243 private void HardRemoveBinding(BindingSource binding)
244 {
245 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
246 }
247
248 // Token: 0x06000098 RID: 152 RVA: 0x00003140 File Offset: 0x00001340
249 public void RemoveBinding(BindingSource binding)
250 {
252 if (bindingSource != null)
253 {
254 PlayerAction <BoundTo>k__BackingField = bindingSource.<BoundTo>k__BackingField;
256 }
257 }
258
259 // Token: 0x06000099 RID: 153 RVA: 0x00003168 File Offset: 0x00001368
260 public void RemoveBindingAt(int index)
261 {
262 int size = this.regularBindings._size;
264 }
265
266 // Token: 0x0600009A RID: 154 RVA: 0x000025E1 File Offset: 0x000007E1
268 {
269 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
270 }
271
272 // Token: 0x0600009B RID: 155 RVA: 0x000025E1 File Offset: 0x000007E1
274 {
275 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
276 }
277
278 // Token: 0x0600009C RID: 156 RVA: 0x00003188 File Offset: 0x00001388
280 {
281 /*
282An exception occurred when decompiling this method (0600009C)
283
284ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 InControl.PlayerAction::IndexOfFirstInvalidBinding()
285
286 ---> System.Exception: Basic block has to end with unconditional control flow.
287{
288 Block_0:
289 stloc:int32(var_0_0B, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.BindingSource>[exp:List`1](PlayerAction::regularBindings, ldloc:PlayerAction(this))))
290 stloc:class [mscorlib]System.Collections.Generic.List`1<class InControl.BindingSource>(var_2_14, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.BindingSource>(PlayerAction::regularBindings, ldloc:PlayerAction(this)))
291}
292
293 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
294 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
295 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
296 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
297 --- End of inner exception stack trace ---
298 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
299 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
300*/;
301 }
302
303 // Token: 0x0600009D RID: 157 RVA: 0x000025E1 File Offset: 0x000007E1
304 public void ClearBindings()
305 {
306 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
307 }
308
309 // Token: 0x0600009E RID: 158 RVA: 0x000025E1 File Offset: 0x000007E1
310 public void ResetBindings()
311 {
312 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
313 }
314
315 // Token: 0x0600009F RID: 159 RVA: 0x000031AC File Offset: 0x000013AC
316 public void ListenForBinding()
317 {
318 }
319
320 // Token: 0x060000A0 RID: 160 RVA: 0x000031BC File Offset: 0x000013BC
322 {
324 BindingListenOptions listenOptions;
325 if (this.ListenOptions == null)
326 {
327 listenOptions = playerActionSet.listenOptions;
328 }
332 if (listenOptions != null)
333 {
334 }
335 }
336
337 // Token: 0x060000A1 RID: 161 RVA: 0x00003204 File Offset: 0x00001404
339 {
340 PlayerAction listenWithAction = this.<Owner>k__BackingField.listenWithAction;
341 }
342
343 // Token: 0x17000025 RID: 37
344 // (get) Token: 0x060000A2 RID: 162 RVA: 0x00003228 File Offset: 0x00001428
346 {
347 get
348 {
349 /*
350An exception occurred when decompiling this method (060000A2)
351
352ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.PlayerAction::get_IsListeningForBinding()
353
354 ---> System.Exception: Basic block has to end with unconditional control flow.
355{
356 Block_0:
357 stloc:PlayerAction(var_0_0B, ldfld:PlayerAction(PlayerActionSet::listenWithAction, ldfld:PlayerActionSet(PlayerAction::<Owner>k__BackingField, ldloc:PlayerAction(this))))
358}
359
360 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
361 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
362 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
363 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
364 --- End of inner exception stack trace ---
365 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
366 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
367*/;
368 }
369 }
370
371 // Token: 0x17000026 RID: 38
372 // (get) Token: 0x060000A3 RID: 163 RVA: 0x00003240 File Offset: 0x00001440
374 {
375 get
376 {
377 return this.bindings;
378 }
379 }
380
381 // Token: 0x17000027 RID: 39
382 // (get) Token: 0x060000A4 RID: 164 RVA: 0x00003254 File Offset: 0x00001454
384 {
385 get
386 {
387 return this.unfilteredBindings;
388 }
389 }
390
391 // Token: 0x060000A5 RID: 165 RVA: 0x000025E1 File Offset: 0x000007E1
393 {
394 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
395 }
396
397 // Token: 0x060000A6 RID: 166 RVA: 0x00003268 File Offset: 0x00001468
398 internal void Update(ulong updateTick, float deltaTime, InputDevice device)
399 {
400 do
401 {
402 InputDevice inputDevice = this.device;
405 this.UpdateBindings(updateTick, deltaTime);
406 if (this.triggerBindingChanged)
407 {
409 if (onBindingsChanged != null)
410 {
411 IntPtr invoke_impl = onBindingsChanged.invoke_impl;
412 IntPtr method_code = onBindingsChanged.method_code;
413 IntPtr method = onBindingsChanged.method;
414 }
415 }
416 if (!this.triggerBindingEnded)
417 {
418 goto IL_0066;
419 }
420 }
421 while (this.ListenOptions != null);
422 if (this.<Owner>k__BackingField.listenOptions.OnBindingEnded != null)
423 {
424 }
425 IL_0066:
426 this.DetectBindings();
427 }
428
429 // Token: 0x060000A7 RID: 167 RVA: 0x000025E1 File Offset: 0x000007E1
430 private void UpdateBindings(ulong updateTick, float deltaTime)
431 {
432 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
433 }
434
435 // Token: 0x060000A8 RID: 168 RVA: 0x000032E4 File Offset: 0x000014E4
436 private void DetectBindings()
437 {
439 PlayerAction listenWithAction = playerActionSet.listenWithAction;
440 }
441
442 // Token: 0x060000A9 RID: 169 RVA: 0x000025E1 File Offset: 0x000007E1
444 {
445 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
446 }
447
448 // Token: 0x17000028 RID: 40
449 // (get) Token: 0x060000AA RID: 170 RVA: 0x00003420 File Offset: 0x00001620
450 // (set) Token: 0x060000AB RID: 171 RVA: 0x00003454 File Offset: 0x00001654
452 {
453 get
454 {
455 while (this.device != null)
456 {
457 }
458 InputDevice <Device>k__BackingField = this.<Owner>k__BackingField.<Device>k__BackingField;
461 return this.device;
462 }
463 set
464 {
465 InputDevice inputDevice = this.device;
468 }
469 }
470
471 // Token: 0x17000029 RID: 41
472 // (get) Token: 0x060000AC RID: 172 RVA: 0x00003478 File Offset: 0x00001678
474 {
475 get
476 {
477 if (this.activeDevice != null || !true)
478 {
479 }
480 return 1;
481 }
482 }
483
484 // Token: 0x1700002A RID: 42
485 // (get) Token: 0x060000AD RID: 173 RVA: 0x00003494 File Offset: 0x00001694
487 {
488 get
489 {
490 /*
491An exception occurred when decompiling this method (060000AD)
492
493ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.PlayerAction::get_LastInputTypeIsDevice()
494
495 ---> System.Exception: Basic block has to end with unconditional control flow.
496{
497 Block_0:
498 stloc:BindingSourceType(var_0_06, ldfld:BindingSourceType(PlayerAction::LastInputType, ldloc:PlayerAction(this)))
499}
500
501 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
502 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
503 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
504 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
505 --- End of inner exception stack trace ---
506 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
507 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
508*/;
509 }
510 }
511
512 // Token: 0x1700002B RID: 43
513 // (get) Token: 0x060000AE RID: 174 RVA: 0x000025E1 File Offset: 0x000007E1
514 // (set) Token: 0x060000AF RID: 175 RVA: 0x000034A8 File Offset: 0x000016A8
515 [Obsolete("Please set this property on device controls directly. It does nothing here.")]
516 public new float LowerDeadZone
517 {
518 get
519 {
520 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
521 }
522 set
523 {
524 }
525 }
526
527 // Token: 0x1700002C RID: 44
528 // (get) Token: 0x060000B0 RID: 176 RVA: 0x000025E1 File Offset: 0x000007E1
529 // (set) Token: 0x060000B1 RID: 177 RVA: 0x000034B8 File Offset: 0x000016B8
530 [Obsolete("Please set this property on device controls directly. It does nothing here.")]
531 public new float UpperDeadZone
532 {
533 get
534 {
535 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
536 }
537 set
538 {
539 }
540 }
541
542 // Token: 0x060000B2 RID: 178 RVA: 0x000034C8 File Offset: 0x000016C8
543 internal void Load(BinaryReader reader, ushort dataFormatVersion)
544 {
545 this.ClearBindings();
546 }
547
548 // Token: 0x060000B3 RID: 179 RVA: 0x000034EC File Offset: 0x000016EC
549 internal void Save(BinaryWriter writer)
550 {
552 string text = this.<Name>k__BackingField;
553 int size = this.regularBindings._size;
555 }
556
557 // Token: 0x040000CC RID: 204
559 private string <Name>k__BackingField;
560
561 // Token: 0x040000CD RID: 205
563 private PlayerActionSet <Owner>k__BackingField;
564
565 // Token: 0x040000CE RID: 206
567
568 // Token: 0x040000CF RID: 207
570
571 // Token: 0x040000D0 RID: 208
574
575 // Token: 0x040000D1 RID: 209
577
578 // Token: 0x040000D2 RID: 210
580
581 // Token: 0x040000D3 RID: 211
583
584 // Token: 0x040000D4 RID: 212
587
588 // Token: 0x040000D5 RID: 213
590 private object <UserData>k__BackingField;
591
592 // Token: 0x040000D6 RID: 214
594
595 // Token: 0x040000D7 RID: 215
597
598 // Token: 0x040000D8 RID: 216
600
601 // Token: 0x040000D9 RID: 217
603
604 // Token: 0x040000DA RID: 218
606
607 // Token: 0x040000DB RID: 219
609
610 // Token: 0x040000DC RID: 220
612
613 // Token: 0x040000DD RID: 221
615
616 // Token: 0x040000DE RID: 222
618
619 // Token: 0x040000DF RID: 223
621 }
622}
class f__AnonymousType0<< Count > j__TPar
void AddPlayerAction(PlayerAction action)
void RemoveFirstBindingOfType(BindingSourceType bindingSourceType)
int CountBindingsOfType(BindingSourceType bindingSourceType)
bool ReplaceBinding(BindingSource findBinding, BindingSource withBinding)
InputDeviceStyle LastDeviceStyle
PlayerActionSet< Owner > k__BackingField
readonly List< BindingSource > regularBindings
void AddDefaultBinding(params Key[] keys)
void RemoveBinding(BindingSource binding)
BindingListenOptions ListenOptions
readonly List< BindingSource > visibleBindings
string< Name > k__BackingField
readonly ReadOnlyCollection< BindingSource > bindings
PlayerAction(string name, PlayerActionSet owner)
PlayerActionSet Owner
readonly List< BindingSource > defaultBindings
void HardRemoveBinding(BindingSource binding)
void AddDefaultBinding(Mouse control)
ReadOnlyCollection< BindingSource > UnfilteredBindings
readonly BindingSourceListener[] bindingSourceListeners
void AddDefaultBinding(InputControlType control)
void AddDefaultBinding(BindingSource binding)
Action< BindingSourceType > OnLastInputTypeChanged
bool HasBinding(BindingSource binding)
InputDeviceClass LastDeviceClass
readonly ReadOnlyCollection< BindingSource > unfilteredBindings
void Load(BinaryReader reader, ushort dataFormatVersion)
bool InsertBindingAt(int index, BindingSource binding)
void RemoveBindingAt(int index)
void ListenForBindingReplacing(BindingSource binding)
BindingSource FindBinding(BindingSource binding)
void Save(BinaryWriter writer)
void Update(ulong updateTick, float deltaTime, InputDevice device)
BindingSourceType LastInputType
void AddDefaultBinding(KeyCombo keyCombo)
void UpdateBindings(ulong updateTick, float deltaTime)
object< UserData > k__BackingField
bool AddBinding(BindingSource binding)
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static void LogWarning(object message)
Definition Debug.cs:117
Key
Definition Key.cs:7