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
CubeController.cs
Go to the documentation of this file.
1using System;
2using InControl;
3using UnityEngine;
4
5namespace TouchExample
6{
7 // Token: 0x02000004 RID: 4
9 {
10 // Token: 0x0600000D RID: 13 RVA: 0x000023F4 File Offset: 0x000005F4
11 private void Start()
12 {
13 Renderer component = base.GetComponent<Renderer>();
14 this.cachedRenderer = component;
15 }
16
17 // Token: 0x0600000E RID: 14 RVA: 0x00002410 File Offset: 0x00000610
18 private void Update()
19 {
20 if (!true)
21 {
22 }
26 Material material = this.cachedRenderer.material;
29 float deltaTime = Time.deltaTime;
30 float <X>k__BackingField = activeDevice.Direction.<X>k__BackingField;
33 float <Y>k__BackingField = activeDevice.Direction.<Y>k__BackingField;
34 }
35
36 // Token: 0x0600000F RID: 15 RVA: 0x0000248C File Offset: 0x0000068C
37 private static Color GetColorFromActionButtons(InputDevice inputDevice)
38 {
39 /*
40An exception occurred when decompiling this method (0600000F)
41
42ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color TouchExample.CubeController::GetColorFromActionButtons(InControl.InputDevice)
43
44 ---> System.Exception: Basic block has to end with unconditional control flow.
45{
46 Block_0:
47 stloc:bool(var_1_06, call:bool(OneAxisInputControl::op_Implicit, ldloc:InputControl[exp:OneAxisInputControl](var_0)))
48 stloc:bool(var_3_0D, call:bool(OneAxisInputControl::op_Implicit, ldloc:InputControl[exp:OneAxisInputControl](var_2)))
49 stloc:bool(var_5_15, call:bool(OneAxisInputControl::op_Implicit, ldloc:InputControl[exp:OneAxisInputControl](var_4)))
50 stloc:bool(var_7_1E, call:bool(OneAxisInputControl::op_Implicit, ldloc:InputControl[exp:OneAxisInputControl](var_6)))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
58 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
59 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
60*/;
61 }
62
63 // Token: 0x06000010 RID: 16 RVA: 0x000024B8 File Offset: 0x000006B8
64 private void OnGUI()
65 {
66 int touchCount = TouchManager.TouchCount;
67 global::InControl.Touch touch = TouchManager.GetTouch(0);
68 string text2;
69 string text3;
70 string text = text2 + ": fingerId = " + text3;
71 TouchPhase phase = touch.phase;
72 string text5;
73 string text4 = text + ", phase = " + text5;
74 Vector2 startPosition = touch.startPosition;
75 string text7;
76 string text6 = text4 + ", startPosition = " + text7;
77 Vector2 position = touch.position;
78 string text9;
79 string text8 = text6 + ", position = " + text9;
80 bool isMouse = touch.IsMouse;
81 string text11;
82 string text10 = text8 + ", mouseButton = " + text11;
83 int width = Screen.width;
84 if (position == null)
85 {
86 }
87 }
88
89 // Token: 0x06000011 RID: 17 RVA: 0x00002554 File Offset: 0x00000754
91 {
92 }
93
94 // Token: 0x0400000A RID: 10
96 }
97}
class f__AnonymousType0<< Count > j__TPar
TwoAxisInputControl Direction
static InputDevice ActiveDevice
static Touch GetTouch(int touchIndex)
static InputDevice Device
static Color GetColorFromActionButtons(InputDevice inputDevice)
Component GetComponent(Type type)
Definition Component.cs:41
static int width
Definition Screen.cs:17
static float deltaTime
Definition Time.cs:14