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
PlayerActions.cs
Go to the documentation of this file.
1using System;
3using InControl;
4using UnityEngine;
5
6namespace BindingsExample
7{
8 // Token: 0x0200000E RID: 14
10 {
11 // Token: 0x0600004B RID: 75 RVA: 0x000030C4 File Offset: 0x000012C4
13 {
14 PlayerAction playerAction = base.CreatePlayerAction("Fire");
16 PlayerAction playerAction2 = base.CreatePlayerAction("Jump");
18 PlayerAction playerAction3 = base.CreatePlayerAction("Move Left");
20 PlayerAction playerAction4 = base.CreatePlayerAction("Move Right");
22 PlayerAction playerAction5 = base.CreatePlayerAction("Move Up");
24 PlayerAction playerAction6 = base.CreatePlayerAction("Move Down");
25 PlayerAction left = this.Left;
26 PlayerAction right = this.Right;
27 PlayerAction up = this.Up;
29 PlayerTwoAxisAction playerTwoAxisAction = base.CreateTwoAxisPlayerAction(left, right, playerAction6, up);
31 }
32
33 // Token: 0x0600004C RID: 76 RVA: 0x00003180 File Offset: 0x00001380
35 {
37 do
38 {
39 if (84 == 0)
40 {
41 }
42 if (4 != 0 || 84 == 0)
43 {
44 }
45 if (84 == 0)
46 {
47 }
48 if (84 != 0 || 84 == 0)
49 {
50 }
52 if (@delegate != null)
53 {
54 if (@delegate == null)
55 {
56 break;
57 }
58 if (@delegate == null)
59 {
60 }
61 }
62 }
63 while (delegate2 == null || (delegate2 != null && delegate2 != null));
64 throw new InvalidCastException();
65 }
66
67 // Token: 0x0400002C RID: 44
69
70 // Token: 0x0400002D RID: 45
72
73 // Token: 0x0400002E RID: 46
75
76 // Token: 0x0400002F RID: 47
78
79 // Token: 0x04000030 RID: 48
81
82 // Token: 0x04000031 RID: 49
84
85 // Token: 0x04000032 RID: 50
87
88 // Token: 0x0200000F RID: 15
90 [Serializable]
91 private sealed class <>c
92 {
93 // Token: 0x0600004D RID: 77 RVA: 0x000031BC File Offset: 0x000013BC
94 // Note: this type is marked as 'beforefieldinit'.
95 static <>c()
96 {
97 }
98
99 // Token: 0x0600004E RID: 78 RVA: 0x000031CC File Offset: 0x000013CC
100 public <>c()
101 {
102 }
103
104 // Token: 0x0600004F RID: 79 RVA: 0x000031E0 File Offset: 0x000013E0
106 {
107 /*
108An exception occurred when decompiling this method (0600004F)
109
110ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BindingsExample.PlayerActions/<>c::<CreateWithDefaultBindings>b__8_0(InControl.PlayerAction,InControl.BindingSource)
111
112 ---> System.Exception: Basic block has to end with unconditional control flow.
113{
114 Block_0:
115 call:void(PlayerAction::StopListeningForBinding, ldloc:PlayerAction(action))
116}
117
118 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
119 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
120 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
121 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
122 --- End of inner exception stack trace ---
123 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
124 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
125*/;
126 }
127
128 // Token: 0x06000050 RID: 80 RVA: 0x000031F4 File Offset: 0x000013F4
130 {
131 string text;
132 Debug.Log(text);
133 }
134
135 // Token: 0x06000051 RID: 81 RVA: 0x00003208 File Offset: 0x00001408
137 {
138 string text;
139 Debug.Log("Binding rejected... " + text);
140 }
141
142 // Token: 0x04000033 RID: 51
143 public static readonly PlayerActions.<>c <>9;
144
145 // Token: 0x04000034 RID: 52
147
148 // Token: 0x04000035 RID: 53
150
151 // Token: 0x04000036 RID: 54
153 }
154 }
155}
class f__AnonymousType0<< Count > j__TPar
readonly PlayerAction Up
readonly PlayerAction Right
readonly PlayerAction Down
readonly PlayerAction Left
readonly PlayerAction Jump
static PlayerActions CreateWithDefaultBindings()
readonly PlayerTwoAxisAction Move
readonly PlayerAction Fire
static void Log(object message)
Definition Debug.cs:51