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
NPCWasNearPlayerTracker.cs
Go to the documentation of this file.
1using System;
3using System.IO;
8using Terraria.Net;
9
11{
12 // Token: 0x0200093E RID: 2366
14 {
15 // Token: 0x06004778 RID: 18296 RVA: 0x0025E7F8 File Offset: 0x0025C9F8
17 {
18 }
19
20 // Token: 0x06004779 RID: 18297 RVA: 0x0025E808 File Offset: 0x0025CA08
22 {
23 }
24
25 // Token: 0x0600477A RID: 18298 RVA: 0x0025E81C File Offset: 0x0025CA1C
26 public void RegisterWasNearby(NPC npc)
27 {
32 long num = 0L;
34 if (num == 0L)
35 {
36 bool netHost = Main.NetHost;
37 int netID = npc.netID;
39 return;
40 }
41 throw new OutOfMemoryException();
42 }
43
44 // Token: 0x0600477B RID: 18299 RVA: 0x0025E888 File Offset: 0x0025CA88
45 public void SetWasSeenDirectly(string persistentId)
46 {
49 long num = 0L;
51 if (num == 0L)
52 {
53 return;
54 }
55 throw new OutOfMemoryException();
56 }
57
58 // Token: 0x0600477C RID: 18300 RVA: 0x0025E8D4 File Offset: 0x0025CAD4
59 public bool GetWasNearbyBefore(NPC npc)
60 {
62 return this.GetWasNearbyBefore(bestiaryCreditId);
63 }
64
65 // Token: 0x0600477D RID: 18301 RVA: 0x0025E8F0 File Offset: 0x0025CAF0
67 {
68 /*
69An exception occurred when decompiling this method (0600477D)
70
71ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Bestiary.NPCWasNearPlayerTracker::GetWasNearbyBefore(System.String)
72
73 ---> System.Exception: Basic block has to end with unconditional control flow.
74{
75 Block_0:
76 stloc:class [System.Core]System.Collections.Generic.HashSet`1<string>(var_0_06, ldfld:class [System.Core]System.Collections.Generic.HashSet`1<string>(NPCWasNearPlayerTracker::_wasNearPlayer, ldloc:NPCWasNearPlayerTracker(this)))
77}
78
79 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
80 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
81 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
82 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
83 --- End of inner exception stack trace ---
84 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
85 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
86*/;
87 }
88
89 // Token: 0x0600477E RID: 18302 RVA: 0x0025E904 File Offset: 0x0025CB04
90 public void Save(BinaryWriter writer)
91 {
93 int count = this._wasNearPlayer._count;
95 }
96
97 // Token: 0x0600477F RID: 18303 RVA: 0x0025E974 File Offset: 0x0025CB74
102
103 // Token: 0x06004780 RID: 18304 RVA: 0x0025E988 File Offset: 0x0025CB88
105 {
106 }
107
108 // Token: 0x06004781 RID: 18305 RVA: 0x0025E998 File Offset: 0x0025CB98
119
120 // Token: 0x06004782 RID: 18306 RVA: 0x000021DB File Offset: 0x000003DB
121 public void ScanWorldForFinds()
122 {
123 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
124 }
125
126 // Token: 0x06004783 RID: 18307 RVA: 0x0025E9D8 File Offset: 0x0025CBD8
128 {
130 if (!true)
131 {
132 }
133 if (!true)
134 {
135 }
137 }
138
139 // Token: 0x04008362 RID: 33634
140 private object _entryCreationLock;
141
142 // Token: 0x04008363 RID: 33635
144
145 // Token: 0x04008364 RID: 33636
147
148 // Token: 0x04008365 RID: 33637
150 }
151}
class f__AnonymousType0<< Count > j__TPar
static void Exit(object obj)
Definition Monitor.cs:47
void ValidateWorld(BinaryReader reader, int gameVersionSaveWasMadeOn)
void Load(BinaryReader reader, int gameVersionSaveWasMadeOn)
static bool NetHost
Definition Main.cs:5544
string GetBestiaryCreditId()
Definition NPC.cs:10657
int netID
Definition NPC.cs:11510