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
CreativePowerManager.cs
Go to the documentation of this file.
1using System;
3using System.IO;
6
8{
9 // Token: 0x02000A0B RID: 2571
11 {
12 // Token: 0x17000871 RID: 2161
13 // (get) Token: 0x06004BE5 RID: 19429 RVA: 0x000021DB File Offset: 0x000003DB
15 {
16 get
17 {
18 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
19 }
20 }
21
22 // Token: 0x17000872 RID: 2162
23 // (get) Token: 0x06004BE6 RID: 19430 RVA: 0x000021DB File Offset: 0x000003DB
24 // (set) Token: 0x06004BE7 RID: 19431 RVA: 0x00270744 File Offset: 0x0026E944
25 private static bool _initialized
26 {
27 get
28 {
29 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
30 }
31 set
32 {
33 }
34 }
35
36 // Token: 0x06004BE8 RID: 19432 RVA: 0x00270754 File Offset: 0x0026E954
38 {
39 }
40
41 // Token: 0x06004BE9 RID: 19433 RVA: 0x00270768 File Offset: 0x0026E968
43 {
44 int num = 1;
45 ushort powersCount = this._powersCount;
47 }
48
49 // Token: 0x06004BEA RID: 19434 RVA: 0x002707B8 File Offset: 0x0026E9B8
51 {
53 do
54 {
56 if (powersById == null)
57 {
58 return;
59 }
60 }
61 while (powersById != null);
62 throw new InvalidCastException();
63 }
64
65 // Token: 0x06004BEB RID: 19435 RVA: 0x000021DB File Offset: 0x000003DB
67 {
68 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
69 }
70
71 // Token: 0x06004BEC RID: 19436 RVA: 0x002707DC File Offset: 0x0026E9DC
72 public bool TryGetPower(ushort id, [Out] ICreativePower power)
73 {
74 /*
75An exception occurred when decompiling this method (06004BEC)
76
77ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.GameContent.Creative.CreativePowerManager::TryGetPower(System.UInt16,Terraria.GameContent.Creative.ICreativePower)
78
79 ---> System.Exception: Basic block has to end with unconditional control flow.
80{
81 Block_0:
82 stloc:class [mscorlib]System.Collections.Generic.Dictionary`2<uint16, class Terraria.GameContent.Creative.ICreativePower>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.Dictionary`2<uint16, class Terraria.GameContent.Creative.ICreativePower>(CreativePowerManager::_powersById, ldloc:CreativePowerManager(this)))
83}
84
85 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
86 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
87 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
88 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
89 --- End of inner exception stack trace ---
90 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
91 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
92*/;
93 }
94
95 // Token: 0x06004BED RID: 19437 RVA: 0x002707F0 File Offset: 0x0026E9F0
96 public static void TryListingPermissionsFrom(string line)
97 {
98 int stringLength = line._stringLength;
99 bool flag = line.ToLower().StartsWith("journeypermission_");
100 string text = line.Substring(43134976);
101 long num = 0L;
102 string[] array;
103 bool flag2 = int.TryParse(array.Trim(), (int)num);
104 string text3;
105 string text2 = text3.ToLower();
108 }
109
110 // Token: 0x06004BEE RID: 19438 RVA: 0x00270850 File Offset: 0x0026EA50
111 public static void Initialize()
112 {
113 bool initialized = CreativePowerManager._initialized;
114 }
115
116 // Token: 0x06004BEF RID: 19439 RVA: 0x00270944 File Offset: 0x0026EB44
117 public void Reset()
118 {
120 }
121
122 // Token: 0x06004BF0 RID: 19440 RVA: 0x0027097C File Offset: 0x0026EB7C
123 public void SaveToWorld(BinaryWriter writer)
124 {
125 while (this._powersById == null)
126 {
127 }
128 }
129
130 // Token: 0x06004BF1 RID: 19441 RVA: 0x002709AC File Offset: 0x0026EBAC
132 {
133 if (this._powersById != null)
134 {
135 return;
136 }
137 }
138
139 // Token: 0x06004BF2 RID: 19442 RVA: 0x002709C4 File Offset: 0x0026EBC4
141 {
142 if (this._powersById != null)
143 {
144 return;
145 }
146 }
147
148 // Token: 0x06004BF3 RID: 19443 RVA: 0x002709DC File Offset: 0x0026EBDC
149 public static void SyncSplitScreenPlayer(int playerIndex)
150 {
151 if (!true)
152 {
153 }
155 }
156
157 // Token: 0x06004BF4 RID: 19444 RVA: 0x002709F8 File Offset: 0x0026EBF8
159 {
160 int num = 1;
161 if (num == 0)
162 {
163 }
165 if (num == 0)
166 {
167 }
169 if (num == 0)
170 {
171 }
172 int num2 = 1;
174 if (num2 != 0)
175 {
176 }
177 }
178
179 // Token: 0x06004BF5 RID: 19445 RVA: 0x00270A70 File Offset: 0x0026EC70
184
185 // Token: 0x06004BF6 RID: 19446 RVA: 0x00270AC4 File Offset: 0x0026ECC4
186 public void SaveToPlayer(Player player, BinaryWriter writer)
187 {
188 while (this._powersById == null)
189 {
190 }
191 }
192
193 // Token: 0x06004BF7 RID: 19447 RVA: 0x00270AF4 File Offset: 0x0026ECF4
195 {
196 if (this._powersById != null)
197 {
198 return;
199 }
200 byte difficulty = player.difficulty;
201 this.ResetPowersForPlayer(player);
202 }
203
204 // Token: 0x06004BF8 RID: 19448 RVA: 0x00270B18 File Offset: 0x0026ED18
205 public void ApplyLoadedDataToPlayer(Player player)
206 {
207 while (this._powersById == null)
208 {
209 }
210 }
211
212 // Token: 0x06004BF9 RID: 19449 RVA: 0x00270B44 File Offset: 0x0026ED44
213 public void ResetPowersForPlayer(Player player)
214 {
215 while (this._powersById == null)
216 {
217 }
218 }
219
220 // Token: 0x06004BFA RID: 19450 RVA: 0x00270B70 File Offset: 0x0026ED70
221 public void ResetDataForNewPlayer(Player player)
222 {
223 while (this._powersById == null)
224 {
225 }
226 }
227
228 // Token: 0x04008617 RID: 34327
230
231 // Token: 0x04008618 RID: 34328
233
234 // Token: 0x04008619 RID: 34329
235 private ushort _powersCount;
236
237 // Token: 0x0400861A RID: 34330
238 private const string _powerPermissionsLineHeader = "journeypermission_";
239
240 // Token: 0x02000A0C RID: 2572
242 {
243 // Token: 0x06004BFB RID: 19451 RVA: 0x00270BA0 File Offset: 0x0026EDA0
245 {
246 }
247
248 // Token: 0x0400861B RID: 34331
249 public static ushort Id;
250
251 // Token: 0x0400861C RID: 34332
252 public static string Name;
253 }
254 }
255}
class f__AnonymousType0<< Count > j__TPar
void LoadToPlayer(Player player, BinaryReader reader, int versionGameWasLastSavedOn)
bool TryGetPower(ushort id, [Out] ICreativePower power)
void ValidateWorld(BinaryReader reader, int versionGameWasLastSavedOn)
void SaveToPlayer(Player player, BinaryWriter writer)
Dictionary< string, ICreativePower > _powersByName
void LoadFromWorld(BinaryReader reader, int versionGameWasLastSavedOn)