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
Player.cs
Go to the documentation of this file.
1using System;
3using InControl;
4using UnityEngine;
5
7{
8 // Token: 0x02000008 RID: 8
9 public class Player : MonoBehaviour
10 {
11 // Token: 0x17000002 RID: 2
12 // (get) Token: 0x06000029 RID: 41 RVA: 0x000029E0 File Offset: 0x00000BE0
13 // (set) Token: 0x0600002A RID: 42 RVA: 0x000029F4 File Offset: 0x00000BF4
15 {
17 get
18 {
19 return this.<Device>k__BackingField;
20 }
22 set
23 {
25 }
26 }
27
28 // Token: 0x0600002B RID: 43 RVA: 0x00002A08 File Offset: 0x00000C08
29 private void Start()
30 {
31 Renderer component = base.GetComponent<Renderer>();
32 this.cachedRenderer = component;
33 }
34
35 // Token: 0x0600002C RID: 44 RVA: 0x00002A24 File Offset: 0x00000C24
36 private void Update()
37 {
38 InputDevice inputDevice = this.<Device>k__BackingField;
39 Material material = this.cachedRenderer.material;
40 if (inputDevice != null)
41 {
44 float deltaTime = Time.deltaTime;
45 float <X>k__BackingField = this.<Device>k__BackingField.Direction.<X>k__BackingField;
48 float <Y>k__BackingField = this.<Device>k__BackingField.Direction.<Y>k__BackingField;
49 return;
50 }
51 }
52
53 // Token: 0x0600002D RID: 45 RVA: 0x00002A98 File Offset: 0x00000C98
55 {
56 /*
57An exception occurred when decompiling this method (0600002D)
58
59ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Color MultiplayerBasicExample.Player::GetColorFromInput()
60
61 ---> System.Exception: Basic block has to end with unconditional control flow.
62{
63 Block_0:
64 stloc:bool(var_0_10, call:bool(OneAxisInputControl::op_Implicit, callgetter:InputControl[exp:OneAxisInputControl](InputDevice::get_Action1, ldfld:InputDevice(Player::<Device>k__BackingField, ldloc:Player(this)))))
65 stloc:bool(var_1_21, call:bool(OneAxisInputControl::op_Implicit, callgetter:InputControl[exp:OneAxisInputControl](InputDevice::get_Action2, ldfld:InputDevice(Player::<Device>k__BackingField, ldloc:Player(this)))))
66 stloc:bool(var_2_32, call:bool(OneAxisInputControl::op_Implicit, callgetter:InputControl[exp:OneAxisInputControl](InputDevice::get_Action3, ldfld:InputDevice(Player::<Device>k__BackingField, ldloc:Player(this)))))
67 stloc:bool(var_3_43, call:bool(OneAxisInputControl::op_Implicit, callgetter:InputControl[exp:OneAxisInputControl](InputDevice::get_Action4, ldfld:InputDevice(Player::<Device>k__BackingField, ldloc:Player(this)))))
68}
69
70 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
71 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
72 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
73 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
74 --- End of inner exception stack trace ---
75 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
76 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
77*/;
78 }
79
80 // Token: 0x0600002E RID: 46 RVA: 0x00002AE8 File Offset: 0x00000CE8
81 public Player()
82 {
83 }
84
85 // Token: 0x0400001C RID: 28
87 private InputDevice <Device>k__BackingField;
88
89 // Token: 0x0400001D RID: 29
91 }
92}
class f__AnonymousType0<< Count > j__TPar
InputDevice< Device > k__BackingField
Definition Player.cs:87
Component GetComponent(Type type)
Definition Component.cs:41
static float deltaTime
Definition Time.cs:14