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
TouchTrackControl.cs
Go to the documentation of this file.
1using System;
2using UnityEngine;
3
4namespace InControl
5{
6 // Token: 0x0200004B RID: 75
8 {
9 // Token: 0x060003A2 RID: 930 RVA: 0x0000C324 File Offset: 0x0000A524
10 public override void CreateControl()
11 {
12 }
13
14 // Token: 0x060003A3 RID: 931 RVA: 0x0000C334 File Offset: 0x0000A534
15 public override void DestroyControl()
16 {
17 if (this.currentTouch != null)
18 {
19 }
20 }
21
22 // Token: 0x060003A4 RID: 932 RVA: 0x0000C34C File Offset: 0x0000A54C
23 public override void ConfigureControl()
24 {
25 float xmin = this.activeArea.m_XMin;
26 float ymin = this.activeArea.m_YMin;
27 float width = this.activeArea.m_Width;
28 float height = this.activeArea.m_Height;
34 }
35
36 // Token: 0x060003A5 RID: 933 RVA: 0x0000C3C4 File Offset: 0x0000A5C4
37 public override void DrawGizmos()
38 {
39 float xmin = this.worldActiveArea.m_XMin;
40 float ymin = this.worldActiveArea.m_YMin;
41 float width = this.worldActiveArea.m_Width;
42 float height = this.worldActiveArea.m_Height;
43 if (!true)
44 {
45 }
46 }
47
48 // Token: 0x060003A6 RID: 934 RVA: 0x0000C408 File Offset: 0x0000A608
49 private void OnValidate()
50 {
51 float num = this.maxTapDuration;
52 }
53
54 // Token: 0x060003A7 RID: 935 RVA: 0x0000C41C File Offset: 0x0000A61C
55 private void Update()
56 {
57 if (this.dirty)
58 {
59 }
60 }
61
62 // Token: 0x060003A8 RID: 936 RVA: 0x0000C434 File Offset: 0x0000A634
63 public override void SubmitControlState(ulong updateTick, float deltaTime)
64 {
65 float x = this.lastPosition.x;
66 float num = this.scale;
68 float z = this.thisPosition.z;
70 bool flag = this.fireButtonTarget;
72 base.SubmitButtonState(buttonTarget, flag, updateTick, deltaTime);
73 }
74
75 // Token: 0x060003A9 RID: 937 RVA: 0x0000C490 File Offset: 0x0000A690
76 public override void CommitControlState(ulong updateTick, float deltaTime)
77 {
79 base.CommitAnalog(analogTarget);
81 base.CommitButton(buttonTarget);
82 }
83
84 // Token: 0x060003AA RID: 938 RVA: 0x0000C4BC File Offset: 0x0000A6BC
85 public override void TouchBegan(Touch touch)
86 {
87 if (this.currentTouch == null)
88 {
89 float x = touch.position.x;
90 float y = touch.position.y;
93 float x2 = touch.position.x;
94 float y2 = touch.position.y;
95 int num = 17096;
98 float z = this.thisPosition.z;
100 this.lastPosition = num;
102 float realtimeSinceStartup = Time.realtimeSinceStartup;
104 }
105 }
106
107 // Token: 0x060003AB RID: 939 RVA: 0x0000C57C File Offset: 0x0000A77C
108 public override void TouchMoved(Touch touch)
109 {
111 float x = touch.position.x;
112 float y = touch.position.y;
115 }
116
117 // Token: 0x060003AC RID: 940 RVA: 0x0000C5C0 File Offset: 0x0000A7C0
118 public override void TouchEnded(Touch touch)
119 {
121 float x = touch.position.x;
122 float y = touch.position.y;
123 float x2 = this.beganPosition.x;
124 float y2 = this.beganPosition.y;
125 float z = this.beganPosition.z;
126 float realtimeSinceStartup = Time.realtimeSinceStartup;
127 float num = this.beganTime;
128 float num2 = this.maxTapMovement;
129 float num3 = this.maxTapDuration;
130 if (this.tapTarget != TouchControl.ButtonTarget.None)
131 {
133 }
134 }
135
136 // Token: 0x17000122 RID: 290
137 // (get) Token: 0x060003AD RID: 941 RVA: 0x0000C644 File Offset: 0x0000A844
138 // (set) Token: 0x060003AE RID: 942 RVA: 0x0000C680 File Offset: 0x0000A880
140 {
141 get
142 {
143 /*
144An exception occurred when decompiling this method (060003AD)
145
146ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Rect InControl.TouchTrackControl::get_ActiveArea()
147
148 ---> System.Exception: Basic block has to end with unconditional control flow.
149{
150 Block_0:
151 stloc:float32(var_0_0B, ldfld:float32(Rect::m_XMin, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](TouchTrackControl::activeArea, ldloc:TouchTrackControl(this))))
152 stloc:float32(var_1_17, ldfld:float32(Rect::m_YMin, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](TouchTrackControl::activeArea, ldloc:TouchTrackControl(this))))
153 stloc:float32(var_2_23, ldfld:float32(Rect::m_Width, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](TouchTrackControl::activeArea, ldloc:TouchTrackControl(this))))
154 stloc:float32(var_3_2F, ldfld:float32(Rect::m_Height, ldfld:Rect[exp:valuetype [UnityEngine.CoreModule]UnityEngine.Rect&](TouchTrackControl::activeArea, ldloc:TouchTrackControl(this))))
155}
156
157 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
158 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
159 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
160 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
161 --- End of inner exception stack trace ---
162 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
163 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
164*/;
165 }
166 set
167 {
168 float xmin = this.activeArea.m_XMin;
169 float ymin = this.activeArea.m_YMin;
170 float width = this.activeArea.m_Width;
171 float height = this.activeArea.m_Height;
172 }
173 }
174
175 // Token: 0x17000123 RID: 291
176 // (get) Token: 0x060003AF RID: 943 RVA: 0x0000C6C0 File Offset: 0x0000A8C0
177 // (set) Token: 0x060003B0 RID: 944 RVA: 0x0000C6D4 File Offset: 0x0000A8D4
179 {
180 get
181 {
182 return this.areaUnitType;
183 }
184 set
185 {
188 this.dirty = true;
189 }
190 }
191
192 // Token: 0x060003B1 RID: 945 RVA: 0x0000C6F8 File Offset: 0x0000A8F8
194 {
195 }
196
197 // Token: 0x04000334 RID: 820
198 [Header("Dimensions")]
201
202 // Token: 0x04000335 RID: 821
205
206 // Token: 0x04000336 RID: 822
207 [Header("Analog Target")]
209
210 // Token: 0x04000337 RID: 823
211 public float scale;
212
213 // Token: 0x04000338 RID: 824
214 [Header("Button Target")]
216
217 // Token: 0x04000339 RID: 825
218 public float maxTapDuration;
219
220 // Token: 0x0400033A RID: 826
221 public float maxTapMovement;
222
223 // Token: 0x0400033B RID: 827
225
226 // Token: 0x0400033C RID: 828
228
229 // Token: 0x0400033D RID: 829
231
232 // Token: 0x0400033E RID: 830
234
235 // Token: 0x0400033F RID: 831
236 private bool dirty;
237
238 // Token: 0x04000340 RID: 832
239 private bool fireButtonTarget;
240
241 // Token: 0x04000341 RID: 833
242 private float beganTime;
243
244 // Token: 0x04000342 RID: 834
246 }
247}
class f__AnonymousType0<< Count > j__TPar
void CommitAnalog(TouchControl.AnalogTarget target)
void CommitButton(TouchControl.ButtonTarget target)
TouchControl.AnalogTarget target
override void TouchBegan(Touch touch)
TouchControl.ButtonTarget tapTarget
override void TouchEnded(Touch touch)
override void SubmitControlState(ulong updateTick, float deltaTime)
override void TouchMoved(Touch touch)
override void CommitControlState(ulong updateTick, float deltaTime)
Vector2 position
Definition Touch.cs:175
static float realtimeSinceStartup
Definition Time.cs:80
float m_XMin
Definition Rect.cs:522
float m_Height
Definition Rect.cs:534
float m_YMin
Definition Rect.cs:526
float m_Width
Definition Rect.cs:530