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
KeyInfo.cs
Go to the documentation of this file.
1using System;
3using UnityEngine;
4
5namespace InControl
6{
7 // Token: 0x0200000D RID: 13
8 public struct KeyInfo
9 {
10 // Token: 0x06000060 RID: 96 RVA: 0x00002AA4 File Offset: 0x00000CA4
12 {
13 this.key = key;
17 }
18
19 // Token: 0x06000061 RID: 97 RVA: 0x00002AD0 File Offset: 0x00000CD0
20 private KeyInfo(Key key, string name, string macName, params KeyCode[] keyCodes)
21 {
22 this.key = key;
26 }
27
28 // Token: 0x17000019 RID: 25
29 // (get) Token: 0x06000062 RID: 98 RVA: 0x00002AFC File Offset: 0x00000CFC
30 public bool IsPressed
31 {
32 get
33 {
34 /*
35An exception occurred when decompiling this method (06000062)
36
37ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.KeyInfo::get_IsPressed()
38
39 ---> System.Exception: Basic block has to end with unconditional control flow.
40{
41 Block_0:
42 stloc:valuetype [UnityEngine.CoreModule]UnityEngine.KeyCode[](var_0_06, ldfld:valuetype [UnityEngine.CoreModule]UnityEngine.KeyCode[](KeyInfo::keyCodes, ldloc:valuetype InControl.KeyInfo&(this)))
43 stloc:valuetype [UnityEngine.CoreModule]UnityEngine.KeyCode[](var_3_0F, ldfld:valuetype [UnityEngine.CoreModule]UnityEngine.KeyCode[](KeyInfo::keyCodes, ldloc:valuetype InControl.KeyInfo&(this)))
44}
45
46 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
47 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
48 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
49 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
50 --- End of inner exception stack trace ---
51 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
52 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
53*/;
54 }
55 }
56
57 // Token: 0x1700001A RID: 26
58 // (get) Token: 0x06000063 RID: 99 RVA: 0x00002B20 File Offset: 0x00000D20
59 public string Name
60 {
61 get
62 {
63 /*
64An exception occurred when decompiling this method (06000063)
65
66ICSharpCode.Decompiler.DecompilerException: Error decompiling System.String InControl.KeyInfo::get_Name()
67
68 ---> System.Exception: Basic block has to end with unconditional control flow.
69{
70 Block_0:
71 stloc:RuntimePlatform(var_2_10, callgetter:RuntimePlatform(Application::get_platform))
72}
73
74 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
75 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
76 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
77 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
78 --- End of inner exception stack trace ---
79 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
80 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
81*/;
82 }
83 }
84
85 // Token: 0x1700001B RID: 27
86 // (get) Token: 0x06000064 RID: 100 RVA: 0x000025E1 File Offset: 0x000007E1
87 public Key Key
88 {
89 get
90 {
91 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
92 }
93 }
94
95 // Token: 0x06000065 RID: 101 RVA: 0x000025E1 File Offset: 0x000007E1
96 // Note: this type is marked as 'beforefieldinit'.
97 static KeyInfo()
98 {
99 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
100 }
101
102 // Token: 0x040000AD RID: 173
103 private readonly Key key;
104
105 // Token: 0x040000AE RID: 174
106 private readonly string name;
107
108 // Token: 0x040000AF RID: 175
109 private readonly string macName;
110
111 // Token: 0x040000B0 RID: 176
113
114 // Token: 0x040000B1 RID: 177
115 public static readonly KeyInfo[] KeyList;
116 }
117}
class f__AnonymousType0<< Count > j__TPar
Key
Definition Key.cs:7
KeyInfo(Key key, string name, string macName, params KeyCode[] keyCodes)
Definition KeyInfo.cs:20
KeyInfo(Key key, string name, params KeyCode[] keyCodes)
Definition KeyInfo.cs:11
readonly KeyCode[] keyCodes
Definition KeyInfo.cs:112
static readonly KeyInfo[] KeyList
Definition KeyInfo.cs:115
readonly string macName
Definition KeyInfo.cs:109
readonly string name
Definition KeyInfo.cs:106
readonly Key key
Definition KeyInfo.cs:103
static KeyInfo()
Definition KeyInfo.cs:97