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
PlayerActionSet.cs
Go to the documentation of this file.
1using System;
5using System.Text;
7
8namespace InControl
9{
10 // Token: 0x02000012 RID: 18
11 public abstract class PlayerActionSet
12 {
13 // Token: 0x1700002D RID: 45
14 // (get) Token: 0x060000B4 RID: 180 RVA: 0x0000351C File Offset: 0x0000171C
15 // (set) Token: 0x060000B5 RID: 181 RVA: 0x00003530 File Offset: 0x00001730
17 {
19 get
20 {
21 return this.<Device>k__BackingField;
22 }
24 set
25 {
27 }
28 }
29
30 // Token: 0x1700002E RID: 46
31 // (get) Token: 0x060000B6 RID: 182 RVA: 0x00003544 File Offset: 0x00001744
32 // (set) Token: 0x060000B7 RID: 183 RVA: 0x00003558 File Offset: 0x00001758
34 {
36 get
37 {
39 }
41 private set
42 {
44 }
45 }
46
47 // Token: 0x1700002F RID: 47
48 // (get) Token: 0x060000B8 RID: 184 RVA: 0x0000356C File Offset: 0x0000176C
49 // (set) Token: 0x060000B9 RID: 185 RVA: 0x00003580 File Offset: 0x00001780
51 {
53 get
54 {
56 }
58 private set
59 {
61 }
62 }
63
64 // Token: 0x17000030 RID: 48
65 // (get) Token: 0x060000BA RID: 186 RVA: 0x00003594 File Offset: 0x00001794
66 // (set) Token: 0x060000BB RID: 187 RVA: 0x000035A8 File Offset: 0x000017A8
68 {
70 get
71 {
72 return this.<Actions>k__BackingField;
73 }
75 private set
76 {
78 }
79 }
80
81 // Token: 0x17000031 RID: 49
82 // (get) Token: 0x060000BC RID: 188 RVA: 0x000035BC File Offset: 0x000017BC
83 // (set) Token: 0x060000BD RID: 189 RVA: 0x000035D0 File Offset: 0x000017D0
85 {
87 get
88 {
89 return this.<UpdateTick>k__BackingField;
90 }
92 protected set
93 {
95 }
96 }
97
98 // Token: 0x14000003 RID: 3
99 // (add) Token: 0x060000BE RID: 190 RVA: 0x000035E4 File Offset: 0x000017E4
100 // (remove) Token: 0x060000BF RID: 191 RVA: 0x0000360C File Offset: 0x0000180C
102 {
104 add
105 {
107 if (@delegate != null && @delegate == null)
108 {
109 return;
110 }
111 }
113 remove
114 {
116 if (@delegate != null && @delegate == null)
117 {
118 return;
119 }
120 }
121 }
122
123 // Token: 0x17000032 RID: 50
124 // (get) Token: 0x060000C0 RID: 192 RVA: 0x00003634 File Offset: 0x00001834
125 // (set) Token: 0x060000C1 RID: 193 RVA: 0x00003648 File Offset: 0x00001848
126 public bool Enabled
127 {
129 get
130 {
131 return this.<Enabled>k__BackingField;
132 }
134 set
135 {
136 }
137 }
138
139 // Token: 0x17000033 RID: 51
140 // (get) Token: 0x060000C2 RID: 194 RVA: 0x00003658 File Offset: 0x00001858
141 // (set) Token: 0x060000C3 RID: 195 RVA: 0x0000366C File Offset: 0x0000186C
143 {
145 get
146 {
148 }
150 set
151 {
152 }
153 }
154
155 // Token: 0x17000034 RID: 52
156 // (get) Token: 0x060000C4 RID: 196 RVA: 0x0000367C File Offset: 0x0000187C
157 // (set) Token: 0x060000C5 RID: 197 RVA: 0x00003690 File Offset: 0x00001890
158 public object UserData
159 {
161 get
162 {
163 return this.<UserData>k__BackingField;
164 }
166 set
167 {
169 }
170 }
171
172 // Token: 0x060000C6 RID: 198 RVA: 0x000036A4 File Offset: 0x000018A4
173 protected PlayerActionSet()
174 {
175 this.<Enabled>k__BackingField = 257 != 0;
178 }
179
180 // Token: 0x060000C7 RID: 199 RVA: 0x000036D0 File Offset: 0x000018D0
181 public void Destroy()
182 {
184 }
185
186 // Token: 0x060000C8 RID: 200 RVA: 0x000025E1 File Offset: 0x000007E1
188 {
189 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
190 }
191
192 // Token: 0x060000C9 RID: 201 RVA: 0x000025E1 File Offset: 0x000007E1
194 {
195 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
196 }
197
198 // Token: 0x060000CA RID: 202 RVA: 0x000025E1 File Offset: 0x000007E1
200 {
201 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
202 }
203
204 // Token: 0x060000CB RID: 203 RVA: 0x000025E1 File Offset: 0x000007E1
205 protected PlayerTwoAxisAction CreateTwoAxisPlayerAction(PlayerAction negativeXAction, PlayerAction positiveXAction, PlayerAction negativeYAction, PlayerAction positiveYAction)
206 {
207 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
208 }
209
210 // Token: 0x17000035 RID: 53
211 public PlayerAction this[string actionName]
212 {
213 get
214 {
215 /*
216An exception occurred when decompiling this method (060000CC)
217
218ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.PlayerAction InControl.PlayerActionSet::get_Item(System.String)
219
220 ---> System.Exception: Basic block has to end with unconditional control flow.
221{
222 Block_0:
223 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class InControl.PlayerAction>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class InControl.PlayerAction>(PlayerActionSet::actionsByName, ldloc:PlayerActionSet(this)))
224 stloc:string(var_1_17, call:string(string::Concat, ldstr:string("Action '"), ldloc:string(actionName), ldstr:string("' does not exist in this action set.")))
225}
226
227 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
228 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
229 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
230 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
231 --- End of inner exception stack trace ---
232 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
233 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
234*/;
235 }
236 }
237
238 // Token: 0x060000CD RID: 205 RVA: 0x00003708 File Offset: 0x00001908
240 {
241 /*
242An exception occurred when decompiling this method (060000CD)
243
244ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.PlayerAction InControl.PlayerActionSet::GetPlayerActionByName(System.String)
245
246 ---> System.Exception: Basic block has to end with unconditional control flow.
247{
248 Block_0:
249 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class InControl.PlayerAction>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<string, class InControl.PlayerAction>(PlayerActionSet::actionsByName, ldloc:PlayerActionSet(this)))
250}
251
252 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
253 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
254 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
255 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
256 --- End of inner exception stack trace ---
257 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
258 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
259*/;
260 }
261
262 // Token: 0x060000CE RID: 206 RVA: 0x000025E1 File Offset: 0x000007E1
263 internal void Update(ulong updateTick, float deltaTime)
264 {
265 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
266 }
267
268 // Token: 0x060000CF RID: 207 RVA: 0x0000371C File Offset: 0x0000191C
269 public void Reset()
270 {
271 int size = this.actions._size;
273 }
274
275 // Token: 0x060000D0 RID: 208 RVA: 0x00003740 File Offset: 0x00001940
277 {
280 int size = list._size;
281 int size2 = list2._size;
282 if (list == null)
283 {
284 }
286 }
287
288 // Token: 0x060000D1 RID: 209 RVA: 0x0000378C File Offset: 0x0000198C
289 public void ClearInputState()
290 {
291 int size = this.actions._size;
293 int size2 = this.oneAxisActions._size;
295 int size3 = this.twoAxisActions._size;
297 }
298
299 // Token: 0x060000D2 RID: 210 RVA: 0x000037EC File Offset: 0x000019EC
300 public bool HasBinding(BindingSource binding)
301 {
302 if (binding != null)
303 {
304 int size = this.actions._size;
306 if (bindingSource != null)
307 {
308 PlayerAction <BoundTo>k__BackingField = bindingSource.<BoundTo>k__BackingField;
309 }
311 return;
312 }
313 }
314
315 // Token: 0x060000D3 RID: 211 RVA: 0x00003824 File Offset: 0x00001A24
316 public void RemoveBinding(BindingSource binding)
317 {
318 if (binding != null)
319 {
320 int size = this.actions._size;
322 if (bindingSource != null)
323 {
324 PlayerAction <BoundTo>k__BackingField = bindingSource.<BoundTo>k__BackingField;
325 }
327 return;
328 }
329 }
330
331 // Token: 0x17000036 RID: 54
332 // (get) Token: 0x060000D4 RID: 212 RVA: 0x00003858 File Offset: 0x00001A58
334 {
335 get
336 {
337 /*
338An exception occurred when decompiling this method (060000D4)
339
340ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.PlayerActionSet::get_IsListeningForBinding()
341
342 ---> System.Exception: Basic block has to end with unconditional control flow.
343{
344 Block_0:
345 stloc:PlayerAction(var_0_06, ldfld:PlayerAction(PlayerActionSet::listenWithAction, ldloc:PlayerActionSet(this)))
346}
347
348 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
349 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
350 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
351 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
352 --- End of inner exception stack trace ---
353 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
354 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
355*/;
356 }
357 }
358
359 // Token: 0x17000037 RID: 55
360 // (get) Token: 0x060000D5 RID: 213 RVA: 0x0000386C File Offset: 0x00001A6C
361 // (set) Token: 0x060000D6 RID: 214 RVA: 0x00003880 File Offset: 0x00001A80
363 {
364 get
365 {
366 return this.listenOptions;
367 }
368 set
369 {
370 if (value == null)
371 {
372 }
373 }
374 }
375
376 // Token: 0x17000038 RID: 56
377 // (get) Token: 0x060000D7 RID: 215 RVA: 0x00003890 File Offset: 0x00001A90
379 {
380 get
381 {
382 if (this.activeDevice != null || !true)
383 {
384 }
385 return 1;
386 }
387 }
388
389 // Token: 0x060000D8 RID: 216 RVA: 0x000038AC File Offset: 0x00001AAC
390 public byte[] SaveData()
391 {
393 int size = this.actions._size;
395 if (!false)
396 {
397 if (!false)
398 {
399 }
400 throw new OutOfMemoryException();
401 }
402 throw new OutOfMemoryException();
403 }
404
405 // Token: 0x060000D9 RID: 217 RVA: 0x0000392C File Offset: 0x00001B2C
406 public void LoadData(byte[] data)
407 {
408 if (data != null)
409 {
411 return;
412 }
413 }
414
415 // Token: 0x060000DA RID: 218 RVA: 0x000039BC File Offset: 0x00001BBC
416 public string Save()
417 {
418 return Convert.ToBase64String(this.SaveData());
419 }
420
421 // Token: 0x060000DB RID: 219 RVA: 0x000039D4 File Offset: 0x00001BD4
422 public void Load(string data)
423 {
424 if (data != null)
425 {
426 byte[] array = Convert.FromBase64String(data);
427 this.LoadData(array);
428 }
429 }
430
431 // Token: 0x040000E0 RID: 224
433 private InputDevice <Device>k__BackingField;
434
435 // Token: 0x040000E1 RID: 225
438
439 // Token: 0x040000E2 RID: 226
442
443 // Token: 0x040000E3 RID: 227
446
447 // Token: 0x040000E4 RID: 228
449 private ulong <UpdateTick>k__BackingField;
450
451 // Token: 0x040000E5 RID: 229
453
454 // Token: 0x040000E6 RID: 230
457
458 // Token: 0x040000E7 RID: 231
460
461 // Token: 0x040000E8 RID: 232
463
464 // Token: 0x040000E9 RID: 233
466
467 // Token: 0x040000EA RID: 234
469 private bool <Enabled>k__BackingField;
470
471 // Token: 0x040000EB RID: 235
473 private bool <PreventInputWhileListeningForBinding>k__BackingField;
474
475 // Token: 0x040000EC RID: 236
477 private object <UserData>k__BackingField;
478
479 // Token: 0x040000ED RID: 237
481
482 // Token: 0x040000EE RID: 238
484
485 // Token: 0x040000EF RID: 239
487
488 // Token: 0x040000F0 RID: 240
490
491 // Token: 0x040000F1 RID: 241
493
494 // Token: 0x040000F2 RID: 242
496
497 // Token: 0x040000F3 RID: 243
499
500 // Token: 0x040000F4 RID: 244
501 private const ushort currentDataFormatVersion = 2;
502 }
503}
class f__AnonymousType0<< Count > j__TPar
static void DetachPlayerActionSet(PlayerActionSet playerActionSet)
static InputDevice ActiveDevice
static void AttachPlayerActionSet(PlayerActionSet playerActionSet)
BindingListenOptions listenOptions
Dictionary< string, PlayerAction > actionsByName
void AddPlayerAction(PlayerAction action)
PlayerTwoAxisAction CreateTwoAxisPlayerAction(PlayerAction negativeXAction, PlayerAction positiveXAction, PlayerAction negativeYAction, PlayerAction positiveYAction)
List< PlayerOneAxisAction > oneAxisActions
void RemoveBinding(BindingSource binding)
ulong< UpdateTick > k__BackingField
const ushort currentDataFormatVersion
List< InputDevice >< ExcludeDevices > k__BackingField
List< InputDevice > IncludeDevices
PlayerOneAxisAction CreateOneAxisPlayerAction(PlayerAction negativeAction, PlayerAction positiveAction)
bool HasBinding(BindingSource binding)
BindingSourceType LastInputType
InputDevice< Device > k__BackingField
ReadOnlyCollection< PlayerAction >< Actions > k__BackingField
Action< BindingSourceType > OnLastInputTypeChanged
object< UserData > k__BackingField
ReadOnlyCollection< PlayerAction > Actions
List< InputDevice >< IncludeDevices > k__BackingField
PlayerAction GetPlayerActionByName(string actionName)
BindingListenOptions ListenOptions
InputDeviceClass LastDeviceClass
List< PlayerAction > actions
void Update(ulong updateTick, float deltaTime)
InputDeviceStyle LastDeviceStyle
bool< Enabled > k__BackingField
List< PlayerTwoAxisAction > twoAxisActions
PlayerAction CreatePlayerAction(string name)
List< InputDevice > ExcludeDevices
bool< PreventInputWhileListeningForBinding > k__BackingField
static byte[] FromBase64String(string s)
Definition Convert.cs:2736
static string ToBase64String(byte[] inArray)
Definition Convert.cs:2645
static Delegate Combine(Delegate a, Delegate b)
Definition Delegate.cs:255
static Delegate Remove(Delegate source, Delegate value)
Definition Delegate.cs:278
static Encoding UTF8
Definition Encoding.cs:828