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
ControllerActionManager.cs
Go to the documentation of this file.
1using System;
5
6namespace Controller
7{
8 // Token: 0x02000B5F RID: 2911
10 {
11 // Token: 0x06005487 RID: 21639 RVA: 0x000021DB File Offset: 0x000003DB
13 {
14 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
15 }
16
17 // Token: 0x06005488 RID: 21640 RVA: 0x002864FC File Offset: 0x002846FC
18 public static Axis GetAxisThreshold(AxisButtons button, [Out] float threshold)
19 {
20 }
21
22 // Token: 0x06005489 RID: 21641 RVA: 0x000021DB File Offset: 0x000003DB
24 {
25 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
26 }
27
28 // Token: 0x0600548A RID: 21642 RVA: 0x000021DB File Offset: 0x000003DB
30 {
31 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
32 }
33
34 // Token: 0x0600548B RID: 21643 RVA: 0x000021DB File Offset: 0x000003DB
36 {
37 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
38 }
39
40 // Token: 0x0600548C RID: 21644 RVA: 0x000021DB File Offset: 0x000003DB
42 {
43 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
44 }
45
46 // Token: 0x0600548D RID: 21645 RVA: 0x000021DB File Offset: 0x000003DB
48 {
49 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
50 }
51
52 // Token: 0x0600548E RID: 21646 RVA: 0x000021DB File Offset: 0x000003DB
54 {
55 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
56 }
57
58 // Token: 0x0600548F RID: 21647 RVA: 0x000021DB File Offset: 0x000003DB
60 {
61 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
62 }
63
64 // Token: 0x17000938 RID: 2360
65 // (get) Token: 0x06005490 RID: 21648 RVA: 0x0028650C File Offset: 0x0028470C
66 public bool HasController
67 {
68 get
69 {
70 /*
71An exception occurred when decompiling this method (06005490)
72
73ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Controller.ControllerActionManager::get_HasController()
74
75 ---> System.Exception: Basic block has to end with unconditional control flow.
76{
77 Block_0:
78 stloc:ControllerDevice(var_1_08, ldfld:ControllerDevice(ControllerActionManager::_controller, ldloc:ControllerActionManager(this)))
79}
80
81 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
82 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
83 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
84 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
85 --- End of inner exception stack trace ---
86 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
87 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
88*/;
89 }
90 }
91
92 // Token: 0x17000939 RID: 2361
93 // (get) Token: 0x06005491 RID: 21649 RVA: 0x00286524 File Offset: 0x00284724
95 {
96 get
97 {
98 return this._controllerActive;
99 }
100 }
101
102 // Token: 0x06005492 RID: 21650 RVA: 0x00286538 File Offset: 0x00284738
108
109 // Token: 0x06005493 RID: 21651 RVA: 0x00286554 File Offset: 0x00284754
110 public void OnUpdate(float elapsedTime)
111 {
112 if (this._forcedActiveController != null)
113 {
115 return;
116 }
117 int num = 1;
118 this._controllerActive = num != 0;
120 }
121
122 // Token: 0x1700093A RID: 2362
123 // (get) Token: 0x06005494 RID: 21652 RVA: 0x0028659C File Offset: 0x0028479C
125 {
126 get
127 {
128 return this._controller;
129 }
130 }
131
132 // Token: 0x1700093B RID: 2363
133 // (get) Token: 0x06005495 RID: 21653 RVA: 0x002865B4 File Offset: 0x002847B4
134 public static bool AnyControllerConnected
135 {
136 get
137 {
139 if (!true)
140 {
141 }
142 while (!true)
143 {
144 }
145 return true;
146 }
147 }
148
149 // Token: 0x04008D7D RID: 36221
151
152 // Token: 0x04008D7E RID: 36222
154
155 // Token: 0x04008D7F RID: 36223
157
158 // Token: 0x04008D80 RID: 36224
160
161 // Token: 0x04008D81 RID: 36225
163
164 // Token: 0x04008D82 RID: 36226
165 private bool _controllerActive;
166
167 // Token: 0x04008D83 RID: 36227
169
170 // Token: 0x04008D84 RID: 36228
172
173 // Token: 0x04008D85 RID: 36229
175
176 // Token: 0x04008D86 RID: 36230
178 }
179}
class f__AnonymousType0<< Count > j__TPar
ControllerActionVector CreateVectorMapping(string id, ControllerActionAxis axisX, ControllerActionAxis axisY)
ControllerActionVector GetVectorMapping(string id)
ControllerActionButton CreateButtonMapping(string id)
List< ControllerActionAxis > _axisMappings
ControllerActionButton GetButtonMapping(string id)
ControllerActionAxis GetAxisMapping(string id)
void ForceActiveController(ControllerDevice controller)
List< ControllerActionButton > _buttonMappings
static Axis GetAxisThreshold(AxisButtons button, [Out] float threshold)
static ControllerActionManager Instance
ControllerActionAxis CreateAxisMapping(string id, bool timeBased, float axisScale)
static ControllerActionManager Create()
List< ControllerActionVector > _vectorMappings
static bool IsCurrentPlatform(DrPlatform.DrPlatformType platform)
Definition DrPlatform.cs:49