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
NPCInfo_OldMobile.cs
Go to the documentation of this file.
1using System;
3using System.IO;
6
7namespace Terraria.IO
8{
9 // Token: 0x0200056E RID: 1390
10 public class NPCInfo_OldMobile
11 {
12 // Token: 0x060033CF RID: 13263 RVA: 0x000021DB File Offset: 0x000003DB
13 public void LoadNPCEntries(BinaryReader reader, int release)
14 {
15 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
16 }
17
18 // Token: 0x060033D0 RID: 13264 RVA: 0x002007E8 File Offset: 0x001FE9E8
19 public void ReadNPCNames(BinaryReader reader, int release)
20 {
21 NPC.setNPCName(reader.ReadNetString(), 17, true);
22 NPC.setNPCName(reader.ReadNetString(), 18, true);
23 NPC.setNPCName(reader.ReadNetString(), 19, true);
24 NPC.setNPCName(reader.ReadNetString(), 20, true);
25 NPC.setNPCName(reader.ReadNetString(), 22, true);
26 NPC.setNPCName(reader.ReadNetString(), 54, true);
27 NPC.setNPCName(reader.ReadNetString(), 38, true);
28 NPC.setNPCName(reader.ReadNetString(), 107, true);
29 NPC.setNPCName(reader.ReadNetString(), 108, true);
30 NPC.setNPCName(reader.ReadNetString(), 124, true);
31 NPC.setNPCName(reader.ReadNetString(), 160, true);
32 NPC.setNPCName(reader.ReadNetString(), 178, true);
33 NPC.setNPCName(reader.ReadNetString(), 207, true);
34 NPC.setNPCName(reader.ReadNetString(), 209, true);
35 NPC.setNPCName(reader.ReadNetString(), 208, true);
36 NPC.setNPCName(reader.ReadNetString(), 227, true);
37 NPC.setNPCName(reader.ReadNetString(), 228, true);
38 NPC.setNPCName(reader.ReadNetString(), 229, true);
39 NPC.setNPCName(reader.ReadNetString(), 369, true);
40 NPC.setNPCName(NPC.getNewNPCName(353), 353, true);
41 }
42
43 // Token: 0x060033D1 RID: 13265 RVA: 0x00200930 File Offset: 0x001FEB30
44 public bool Load(BinaryReader reader, int release)
45 {
46 /*
47An exception occurred when decompiling this method (060033D1)
48
49ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.IO.NPCInfo_OldMobile::Load(System.IO.BinaryReader,System.Int32)
50
51 ---> System.Exception: Basic block has to end with unconditional control flow.
52{
53 Block_0:
54 stloc:int32(var_0_01, ldc.i4:int32(1))
55 stfld:bool(NPCInfo_OldMobile::downedAnyBoss, ldloc:NPCInfo_OldMobile(this), ldloc:int32[exp:bool](var_0_01))
56 stloc:int64(var_1_0A, ldc.i4:int64(0))
57 stfld:int64(int64::m_value, ldloc:int64[exp:int64&](var_1_0A), ldloc:BinaryReader[exp:int64](reader))
58}
59
60 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
61 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
62 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
63 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
64 --- End of inner exception stack trace ---
65 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
66 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
67*/;
68 }
69
70 // Token: 0x060033D2 RID: 13266 RVA: 0x00200958 File Offset: 0x001FEB58
71 public bool LoadMeta(WorldFileData data, BinaryReader reader, int release)
72 {
73 return true;
74 }
75
76 // Token: 0x060033D3 RID: 13267 RVA: 0x00200968 File Offset: 0x001FEB68
78 {
79 }
80
81 // Token: 0x04003E11 RID: 15889
82 private bool downedAnyBoss;
83
84 // Token: 0x04003E12 RID: 15890
85 private bool downedRabbit;
86
87 // Token: 0x04003E13 RID: 15891
88 private bool downedTurkor;
89
90 // Token: 0x04003E14 RID: 15892
92
93 // Token: 0x0200056F RID: 1391
94 public class NPCEntry
95 {
96 // Token: 0x060033D4 RID: 13268 RVA: 0x0020097C File Offset: 0x001FEB7C
97 public NPCEntry()
98 {
99 }
100
101 // Token: 0x04003E15 RID: 15893
102 public int npcId;
103
104 // Token: 0x04003E16 RID: 15894
105 public int homeTileX;
106
107 // Token: 0x04003E17 RID: 15895
108 public int homeTileY;
109
110 // Token: 0x04003E18 RID: 15896
111 public bool homeless;
112
113 // Token: 0x04003E19 RID: 15897
115 }
116 }
117}
class f__AnonymousType0<< Count > j__TPar
void LoadNPCEntries(BinaryReader reader, int release)
bool Load(BinaryReader reader, int release)
List< NPCInfo_OldMobile.NPCEntry > npcEntries
void ReadNPCNames(BinaryReader reader, int release)
bool LoadMeta(WorldFileData data, BinaryReader reader, int release)
static string getNewNPCName(int npcType)
Definition NPC.cs:830
static void setNPCName(string newName, int npcType, bool resetExtras=false)
Definition NPC.cs:922