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
NPCWasChatWithTracker.cs
Go to the documentation of this file.
1using System;
3using System.IO;
6using Terraria.Net;
7
9{
10 // Token: 0x0200093F RID: 2367
12 {
13 // Token: 0x06004784 RID: 18308 RVA: 0x0025EA1C File Offset: 0x0025CC1C
15 {
16 }
17
18 // Token: 0x06004785 RID: 18309 RVA: 0x0025EA30 File Offset: 0x0025CC30
19 public void RegisterChatStartWith(NPC npc)
20 {
25 long num = 0L;
27 if (num == 0L)
28 {
29 bool netHost = Main.NetHost;
30 int netID = npc.netID;
32 return;
33 }
34 throw new OutOfMemoryException();
35 }
36
37 // Token: 0x06004786 RID: 18310 RVA: 0x0025EA9C File Offset: 0x0025CC9C
39 {
42 long num = 0L;
44 if (num == 0L)
45 {
46 return;
47 }
48 throw new OutOfMemoryException();
49 }
50
51 // Token: 0x06004787 RID: 18311 RVA: 0x0025EAE8 File Offset: 0x0025CCE8
52 public bool GetWasChatWith(NPC npc)
53 {
54 /*
55An exception occurred when decompiling this method (06004787)
56
57ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Bestiary.NPCWasChatWithTracker::GetWasChatWith(Terraria.NPC)
58
59 ---> System.Exception: Basic block has to end with unconditional control flow.
60{
61 Block_0:
62 stloc:string(var_0_06, call:string(NPC::GetBestiaryCreditId, ldloc:NPC(npc)))
63 stloc:class [System.Core]System.Collections.Generic.HashSet`1<string>(var_1_0D, ldfld:class [System.Core]System.Collections.Generic.HashSet`1<string>(NPCWasChatWithTracker::_chattedWithPlayer, ldloc:NPCWasChatWithTracker(this)))
64}
65
66 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
67 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
68 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
69 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
70 --- End of inner exception stack trace ---
71 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
72 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
73*/;
74 }
75
76 // Token: 0x06004788 RID: 18312 RVA: 0x0025EB04 File Offset: 0x0025CD04
77 public bool GetWasChatWith(string persistentId)
78 {
79 /*
80An exception occurred when decompiling this method (06004788)
81
82ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Bestiary.NPCWasChatWithTracker::GetWasChatWith(System.String)
83
84 ---> System.Exception: Basic block has to end with unconditional control flow.
85{
86 Block_0:
87 stloc:class [System.Core]System.Collections.Generic.HashSet`1<string>(var_0_06, ldfld:class [System.Core]System.Collections.Generic.HashSet`1<string>(NPCWasChatWithTracker::_chattedWithPlayer, ldloc:NPCWasChatWithTracker(this)))
88}
89
90 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
91 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
92 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
93 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
94 --- End of inner exception stack trace ---
95 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
96 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
97*/;
98 }
99
100 // Token: 0x06004789 RID: 18313 RVA: 0x0025EB18 File Offset: 0x0025CD18
101 public void Save(BinaryWriter writer)
102 {
106 }
107
108 // Token: 0x0600478A RID: 18314 RVA: 0x0025EB88 File Offset: 0x0025CD88
113
114 // Token: 0x0600478B RID: 18315 RVA: 0x0025EB9C File Offset: 0x0025CD9C
116 {
117 }
118
119 // Token: 0x0600478C RID: 18316 RVA: 0x0025EBAC File Offset: 0x0025CDAC
120 public void Reset()
121 {
123 }
124
125 // Token: 0x0600478D RID: 18317 RVA: 0x0025EBC0 File Offset: 0x0025CDC0
127 {
129 if (!true)
130 {
131 }
132 if (!true)
133 {
134 }
136 }
137
138 // Token: 0x04008366 RID: 33638
139 private object _entryCreationLock;
140
141 // Token: 0x04008367 RID: 33639
143 }
144}
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