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
AnchoredEntitiesCollection.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000674 RID: 1652
11 {
12 // Token: 0x170006A9 RID: 1705
13 // (get) Token: 0x06003730 RID: 14128 RVA: 0x002213A8 File Offset: 0x0021F5A8
15 {
16 get
17 {
18 return this._anchoredPlayers._size;
19 }
20 }
21
22 // Token: 0x06003731 RID: 14129 RVA: 0x002213C0 File Offset: 0x0021F5C0
24 {
25 }
26
27 // Token: 0x06003732 RID: 14130 RVA: 0x002213D4 File Offset: 0x0021F5D4
28 public void ClearNPCAnchors()
29 {
31 int version = anchoredNPCs._version;
32 anchoredNPCs._syncRoot = version;
33 }
34
35 // Token: 0x06003733 RID: 14131 RVA: 0x002213F8 File Offset: 0x0021F5F8
42
43 // Token: 0x06003734 RID: 14132 RVA: 0x000021DB File Offset: 0x000003DB
44 public void AddNPC(int npcIndex, Point coords)
45 {
46 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
47 }
48
49 // Token: 0x06003735 RID: 14133 RVA: 0x0022141C File Offset: 0x0021F61C
51 {
52 return this.GetEntitiesInCoords(coords);
53 }
54
55 // Token: 0x06003736 RID: 14134 RVA: 0x000021DB File Offset: 0x000003DB
57 {
58 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
59 }
60
61 // Token: 0x06003737 RID: 14135 RVA: 0x00221430 File Offset: 0x0021F630
62 private int GetEntitiesInCoords(Point coords)
63 {
64 /*
65An exception occurred when decompiling this method (06003737)
66
67ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 Terraria.DataStructures.AnchoredEntitiesCollection::GetEntitiesInCoords(Microsoft.Xna.Framework.Point)
68
69 ---> System.Exception: Basic block has to end with unconditional control flow.
70{
71 IL_003A:
72 stloc:int32(var_10_45, ldfld:int32(List`1::_size, ldfld:class [mscorlib]System.Collections.Generic.List`1<valuetype Terraria.DataStructures.AnchoredEntitiesCollection/IndexPointPair>[exp:List`1](AnchoredEntitiesCollection::_anchoredPlayers, ldloc:AnchoredEntitiesCollection(this))))
73}
74
75 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
76 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
77 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
78 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
79 --- End of inner exception stack trace ---
80 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
81 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
82*/;
83 }
84
85 // Token: 0x04007825 RID: 30757
87
88 // Token: 0x04007826 RID: 30758
90
91 // Token: 0x02000675 RID: 1653
92 private struct IndexPointPair
93 {
94 // Token: 0x04007827 RID: 30759
95 public int index;
96
97 // Token: 0x04007828 RID: 30760
98 public Point coords;
99 }
100 }
101}
class f__AnonymousType0<< Count > j__TPar
List< AnchoredEntitiesCollection.IndexPointPair > _anchoredPlayers
void AddPlayerAndGetItsStackedIndexInCoords(int playerIndex, Point coords, [Out] int stackedIndexInCoords)
List< AnchoredEntitiesCollection.IndexPointPair > _anchoredNPCs