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
ItemRemapUtility.cs
Go to the documentation of this file.
1using System;
3
4namespace Terraria.IO
5{
6 // Token: 0x0200057C RID: 1404
7 public static class ItemRemapUtility
8 {
9 // Token: 0x06003404 RID: 13316 RVA: 0x0020153C File Offset: 0x001FF73C
10 public static bool IsForbidden(int id)
11 {
12 }
13
14 // Token: 0x06003405 RID: 13317 RVA: 0x0020154C File Offset: 0x001FF74C
15 public static short RemapItemID(int itemID, bool remapENGINEItems)
16 {
17 /*
18An exception occurred when decompiling this method (06003405)
19
20ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int16 Terraria.IO.ItemRemapUtility::RemapItemID(System.Int32,System.Boolean)
21
22 ---> System.Exception: Basic block has to end with unconditional control flow.
23{
24 Block_0:
25 stloc:int32(var_2_08, call:int32(ItemRemapUtility::RemapENGINEItemID, ldloc:int32(var_1)))
26 call:void(Debug::LogWarning, ldloc:string[exp:object](var_3))
27}
28
29 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
30 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
31 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
32 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
33 --- End of inner exception stack trace ---
34 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
35 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
36*/;
37 }
38
39 // Token: 0x06003406 RID: 13318 RVA: 0x0020156C File Offset: 0x001FF76C
40 public static int RemapNegativeItemID(int itemID)
41 {
42 }
43
44 // Token: 0x06003407 RID: 13319 RVA: 0x000021DB File Offset: 0x000003DB
45 public static int RemapENGINEItemID(int itemID)
46 {
47 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
48 }
49
50 // Token: 0x06003408 RID: 13320 RVA: 0x0020157C File Offset: 0x001FF77C
51 public static void RemapENGINEMannequin(short tileFrameX, short tileFrameY)
52 {
53 }
54
55 // Token: 0x06003409 RID: 13321 RVA: 0x000021DB File Offset: 0x000003DB
56 private static int RemapENGINEHeadSlot(int headSlot)
57 {
58 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
59 }
60
61 // Token: 0x0600340A RID: 13322 RVA: 0x000021DB File Offset: 0x000003DB
62 private static int RemapENGINEBodySlot(int bodySlot)
63 {
64 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
65 }
66
67 // Token: 0x0600340B RID: 13323 RVA: 0x000021DB File Offset: 0x000003DB
68 private static int RemapENGINELegsSlot(int legsSlot)
69 {
70 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
71 }
72
73 // Token: 0x040040B1 RID: 16561
74 public const short DragonMask = 10000;
75
76 // Token: 0x040040B2 RID: 16562
77 public const short DragonBreastplate = 10001;
78
79 // Token: 0x040040B3 RID: 16563
80 public const short DragonGreaves = 10002;
81
82 // Token: 0x040040B4 RID: 16564
83 public const short SpectralHeadgear = 10003;
84
85 // Token: 0x040040B5 RID: 16565
86 public const short SpectralArmor = 10004;
87
88 // Token: 0x040040B6 RID: 16566
89 public const short SpectralSubligar = 10005;
90
91 // Token: 0x040040B7 RID: 16567
92 public const short TitanHelmet = 10006;
93
94 // Token: 0x040040B8 RID: 16568
95 public const short TitanMail = 10007;
96
97 // Token: 0x040040B9 RID: 16569
98 public const short TitanLeggings = 10008;
99
100 // Token: 0x040040BA RID: 16570
101 public const short OcramMask = 10009;
102
103 // Token: 0x040040BB RID: 16571
104 public const short HornedGodMask = 10010;
105
106 // Token: 0x040040BC RID: 16572
107 public const short HornedGodRobe = 10011;
108
109 // Token: 0x040040BD RID: 16573
110 public const short HornedGodBoots = 10012;
111
112 // Token: 0x040040BE RID: 16574
113 public const short OcramTrophy = 10013;
114
115 // Token: 0x040040BF RID: 16575
116 public const short AlbinoAntlionBanner = 10014;
117
118 // Token: 0x040040C0 RID: 16576
119 public const short ArchWyvernBanner = 10015;
120
121 // Token: 0x040040C1 RID: 16577
122 public const short ArchDemonBanner = 10016;
123
124 // Token: 0x040040C2 RID: 16578
125 public const short DragonSnatcherBanner = 10017;
126
127 // Token: 0x040040C3 RID: 16579
128 public const short OrcaBanner = 10018;
129
130 // Token: 0x040040C4 RID: 16580
131 public const short ShadowHammerBanner = 10019;
132
133 // Token: 0x040040C5 RID: 16581
134 public const short ShadowMummyBanner = 10020;
135
136 // Token: 0x040040C6 RID: 16582
137 public const short SpectralGastropodBanner = 10021;
138
139 // Token: 0x040040C7 RID: 16583
140 public const short SpectralElementalBanner = 10022;
141
142 // Token: 0x040040C8 RID: 16584
143 public const short VampireMinerBanner = 10023;
144
145 // Token: 0x040040C9 RID: 16585
146 public const short MusicBoxTutorial = 10024;
147
148 // Token: 0x040040CA RID: 16586
149 public const short StarTopper4 = 10025;
150
151 // Token: 0x040040CB RID: 16587
152 public const short StarTopper5 = 10026;
153
154 // Token: 0x040040CC RID: 16588
155 public const short ShirenHat = 10027;
156
157 // Token: 0x040040CD RID: 16589
158 public const short ShirenShirt = 10028;
159
160 // Token: 0x040040CE RID: 16590
161 public const short ShirenPants = 10029;
162
163 // Token: 0x040040CF RID: 16591
164 public const short MonokumaHead = 10030;
165
166 // Token: 0x040040D0 RID: 16592
167 public const short MonokumaBody = 10031;
168
169 // Token: 0x040040D1 RID: 16593
170 public const short MonokumaLegs = 10032;
171
172 // Token: 0x040040D2 RID: 16594
173 public const short WhiteThread = 10033;
174
175 // Token: 0x040040D3 RID: 16595
176 public const short MonomiHead = 10034;
177
178 // Token: 0x040040D4 RID: 16596
179 public const short MonomiBody = 10035;
180
181 // Token: 0x040040D5 RID: 16597
182 public const short MonomiLegs = 10036;
183
184 // Token: 0x040040D6 RID: 16598
185 public const short TorosHead = 10037;
186
187 // Token: 0x040040D7 RID: 16599
188 public const short TorosBody = 10038;
189
190 // Token: 0x040040D8 RID: 16600
191 public const short TorosLegs = 10039;
192 }
193}
class f__AnonymousType0<< Count > j__TPar
static int RemapENGINEItemID(int itemID)
static void RemapENGINEMannequin(short tileFrameX, short tileFrameY)
static int RemapENGINEHeadSlot(int headSlot)
static short RemapItemID(int itemID, bool remapENGINEItems)
static int RemapENGINEBodySlot(int bodySlot)
static int RemapENGINELegsSlot(int legsSlot)
static int RemapNegativeItemID(int itemID)
static bool IsForbidden(int id)