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
BaseInputModule.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020000B2 RID: 178
8 [RequireComponent(typeof(EventSystem))]
9 public abstract class BaseInputModule : UIBehaviour
10 {
11 // Token: 0x170001B4 RID: 436
12 // (get) Token: 0x0600065D RID: 1629 RVA: 0x00012320 File Offset: 0x00010520
13 // (set) Token: 0x0600065E RID: 1630 RVA: 0x00012334 File Offset: 0x00010534
15 {
16 get
17 {
19 }
20 set
21 {
22 }
23 }
24
25 // Token: 0x170001B5 RID: 437
26 // (get) Token: 0x0600065F RID: 1631 RVA: 0x00012344 File Offset: 0x00010544
28 {
29 get
30 {
31 /*
32An exception occurred when decompiling this method (0600065F)
33
34ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.EventSystems.BaseInput UnityEngine.EventSystems.BaseInputModule::get_input()
35
36 ---> System.Exception: Basic block has to end with unconditional control flow.
37{
38 IL_0016:
39 stloc:class UnityEngine.EventSystems.BaseInput[](var_5_1C, call:class UnityEngine.EventSystems.BaseInput[](Component::GetComponents, ldloc:BaseInputModule[exp:Component](this)))
40 stloc:bool(var_9_2F, call:bool(Type::op_Equality, call:Type(object::GetType, ldloc:bool[exp:object](var_7)), ldloc:Type(var_8)))
41 stloc:BaseInput(var_11_3C, call:BaseInput(GameObject::AddComponent, callgetter:GameObject(Component::get_gameObject, ldloc:BaseInputModule[exp:Component](this))))
42 stfld:BaseInput(BaseInputModule::m_DefaultInput, ldloc:BaseInputModule(this), ldloc:BaseInput(var_11_3C))
43}
44
45 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
46 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
47 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
48 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
49 --- End of inner exception stack trace ---
50 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
51 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
52*/;
53 }
54 }
55
56 // Token: 0x170001B6 RID: 438
57 // (get) Token: 0x06000660 RID: 1632 RVA: 0x00012398 File Offset: 0x00010598
58 // (set) Token: 0x06000661 RID: 1633 RVA: 0x000123AC File Offset: 0x000105AC
60 {
61 get
62 {
63 return this.m_InputOverride;
64 }
65 set
66 {
68 }
69 }
70
71 // Token: 0x170001B7 RID: 439
72 // (get) Token: 0x06000662 RID: 1634 RVA: 0x000123C0 File Offset: 0x000105C0
74 {
75 get
76 {
77 return this.m_EventSystem;
78 }
79 }
80
81 // Token: 0x06000663 RID: 1635 RVA: 0x000123D4 File Offset: 0x000105D4
82 protected override void OnEnable()
83 {
85 this.m_EventSystem = component;
86 component.UpdateModules();
87 }
88
89 // Token: 0x06000664 RID: 1636 RVA: 0x000123F8 File Offset: 0x000105F8
90 protected override void OnDisable()
91 {
93 }
94
95 // Token: 0x06000665 RID: 1637
96 public abstract void Process();
97
98 // Token: 0x06000666 RID: 1638 RVA: 0x00012410 File Offset: 0x00010610
100 {
101 /*
102An exception occurred when decompiling this method (06000666)
103
104ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.EventSystems.RaycastResult UnityEngine.EventSystems.BaseInputModule::FindFirstRaycast(System.Collections.Generic.List`1<UnityEngine.EventSystems.RaycastResult>)
105
106 ---> System.Exception: Basic block has to end with unconditional control flow.
107{
108 IL_0000:
109 stloc:int32(var_1_01, ldc.i4:int32(1))
110 stloc:int32(var_2_08, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<valuetype UnityEngine.EventSystems.RaycastResult>[exp:List`1](candidates)))
111 brtrue(IL_0000, ldloc:int32[exp:bool](var_1_01))
112}
113
114 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
115 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
116 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
117 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
118 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
119 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
120 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
121 --- End of inner exception stack trace ---
122 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
123 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
124*/;
125 }
126
127 // Token: 0x06000667 RID: 1639 RVA: 0x0001242C File Offset: 0x0001062C
128 protected static MoveDirection DetermineMoveDirection(float x, float y)
129 {
130 return MoveDirection.None;
131 }
132
133 // Token: 0x06000668 RID: 1640 RVA: 0x0001243C File Offset: 0x0001063C
134 protected static MoveDirection DetermineMoveDirection(float x, float y, float deadZone)
135 {
136 return MoveDirection.None;
137 }
138
139 // Token: 0x06000669 RID: 1641 RVA: 0x0001244C File Offset: 0x0001064C
141 {
142 if (!true)
143 {
144 }
145 if (!true)
146 {
147 }
148 if (!true)
149 {
150 }
152 if (!true)
153 {
154 }
155 if (!true)
156 {
157 }
159 bool flag = transform2 == transform;
160 Transform parent = transform.parent;
162 throw new MissingMethodException();
163 }
164
165 // Token: 0x0600066A RID: 1642 RVA: 0x00002207 File Offset: 0x00000407
167 {
168 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
169 }
170
171 // Token: 0x0600066B RID: 1643 RVA: 0x0001249C File Offset: 0x0001069C
172 protected virtual AxisEventData GetAxisEventData(float x, float y, float moveDeadZone)
173 {
175 if (axisEventData == null)
176 {
179 }
181 return this.m_AxisEventData;
182 }
183
184 // Token: 0x0600066C RID: 1644 RVA: 0x000124D4 File Offset: 0x000106D4
185 protected virtual BaseEventData GetBaseEventData()
186 {
187 if (this.m_BaseEventData == null)
188 {
190 }
191 return this.m_BaseEventData;
192 }
193
194 // Token: 0x0600066D RID: 1645 RVA: 0x000124F8 File Offset: 0x000106F8
195 public virtual bool IsPointerOverGameObject(int pointerId)
196 {
197 }
198
199 // Token: 0x0600066E RID: 1646 RVA: 0x00012508 File Offset: 0x00010708
200 public virtual bool ShouldActivateModule()
201 {
202 bool enabled = base.enabled;
203 return base.gameObject.activeInHierarchy;
204 }
205
206 // Token: 0x0600066F RID: 1647 RVA: 0x0001252C File Offset: 0x0001072C
207 public virtual void DeactivateModule()
208 {
209 }
210
211 // Token: 0x06000670 RID: 1648 RVA: 0x0001253C File Offset: 0x0001073C
212 public virtual void ActivateModule()
213 {
214 }
215
216 // Token: 0x06000671 RID: 1649 RVA: 0x0001254C File Offset: 0x0001074C
217 public virtual void UpdateModule()
218 {
219 }
220
221 // Token: 0x06000672 RID: 1650 RVA: 0x0001255C File Offset: 0x0001075C
222 public virtual bool IsModuleSupported()
223 {
224 return true;
225 }
226
227 // Token: 0x06000673 RID: 1651 RVA: 0x00002207 File Offset: 0x00000407
229 {
230 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
231 }
232
233 // Token: 0x06000674 RID: 1652 RVA: 0x0001256C File Offset: 0x0001076C
234 protected BaseInputModule()
235 {
236 }
237
238 // Token: 0x040002E9 RID: 745
241
242 // Token: 0x040002EA RID: 746
244 private bool m_SendPointerHoverToParent = true;
245
246 // Token: 0x040002EB RID: 747
248
249 // Token: 0x040002EC RID: 748
251
252 // Token: 0x040002ED RID: 749
254
255 // Token: 0x040002EE RID: 750
257
258 // Token: 0x040002EF RID: 751
260 }
261}
class f__AnonymousType0<< Count > j__TPar
Component GetComponent(Type type)
Definition Component.cs:41
static MoveDirection DetermineMoveDirection(float x, float y)
void HandlePointerExitAndEnter(PointerEventData currentPointerData, GameObject newEnterTarget)
virtual AxisEventData GetAxisEventData(float x, float y, float moveDeadZone)
static MoveDirection DetermineMoveDirection(float x, float y, float deadZone)
static GameObject FindCommonRoot(GameObject g1, GameObject g2)
virtual int ConvertUIToolkitPointerId(PointerEventData sourcePointerData)
static RaycastResult FindFirstRaycast(List< RaycastResult > candidates)
virtual bool IsPointerOverGameObject(int pointerId)