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
TouchPool.cs
Go to the documentation of this file.
1using System;
5
6namespace InControl
7{
8 // Token: 0x02000056 RID: 86
9 public class TouchPool
10 {
11 // Token: 0x0600040C RID: 1036 RVA: 0x0000D478 File Offset: 0x0000B678
12 public TouchPool(int capacity)
13 {
14 }
15
16 // Token: 0x0600040D RID: 1037 RVA: 0x0000D498 File Offset: 0x0000B698
17 public TouchPool()
18 {
19 }
20
21 // Token: 0x0600040E RID: 1038 RVA: 0x000025E1 File Offset: 0x000007E1
22 public Touch FindOrCreateTouch(int fingerId)
23 {
24 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
25 }
26
27 // Token: 0x0600040F RID: 1039 RVA: 0x000025E1 File Offset: 0x000007E1
28 public Touch FindTouch(int fingerId)
29 {
30 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
31 }
32
33 // Token: 0x06000410 RID: 1040 RVA: 0x0000D4A8 File Offset: 0x0000B6A8
34 private Touch NewTouch()
35 {
36 /*
37An exception occurred when decompiling this method (06000410)
38
39ICSharpCode.Decompiler.DecompilerException: Error decompiling InControl.Touch InControl.TouchPool::NewTouch()
40
41 ---> System.Exception: Basic block has to end with unconditional control flow.
42{
43 Block_0:
44 stloc:int32(var_0_0B, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.Touch>[exp:List`1](TouchPool::freeTouches, ldloc:TouchPool(this))))
45 stloc:class [mscorlib]System.Collections.Generic.List`1<class InControl.Touch>(var_1_12, ldfld:class [mscorlib]System.Collections.Generic.List`1<class InControl.Touch>(TouchPool::freeTouches, ldloc:TouchPool(this)))
46}
47
48 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
49 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
50 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
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 88
52 --- End of inner exception stack trace ---
53 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
54 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
55*/;
56 }
57
58 // Token: 0x06000411 RID: 1041 RVA: 0x000025E1 File Offset: 0x000007E1
59 public void FreeTouch(Touch touch)
60 {
61 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
62 }
63
64 // Token: 0x06000412 RID: 1042 RVA: 0x0000D4C8 File Offset: 0x0000B6C8
65 public void FreeEndedTouches()
66 {
68 int size = list._size;
69 int size2 = list._size;
72 }
73
74 // Token: 0x040003B1 RID: 945
76
77 // Token: 0x040003B2 RID: 946
79
80 // Token: 0x040003B3 RID: 947
82 }
83}
class f__AnonymousType0<< Count > j__TPar
void FreeTouch(Touch touch)
Definition TouchPool.cs:59
void FreeEndedTouches()
Definition TouchPool.cs:65
Touch FindTouch(int fingerId)
Definition TouchPool.cs:28
TouchPool(int capacity)
Definition TouchPool.cs:12
Touch FindOrCreateTouch(int fingerId)
Definition TouchPool.cs:22
List< Touch > usedTouches
Definition TouchPool.cs:78
readonly ReadOnlyCollection< Touch > Touches
Definition TouchPool.cs:75
List< Touch > freeTouches
Definition TouchPool.cs:81