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
ContentManager.cs
Go to the documentation of this file.
1using System;
3using System.IO;
5using System.Text;
10using UnityEngine;
11
13{
14 // Token: 0x020003C3 RID: 963
15 public class ContentManager
16 {
17 // Token: 0x17000370 RID: 880
18 // (get) Token: 0x06001A33 RID: 6707 RVA: 0x0006BE4C File Offset: 0x0006A04C
20 {
21 get
22 {
23 return this.serviceProvider;
24 }
25 }
26
27 // Token: 0x06001A34 RID: 6708 RVA: 0x0006BE60 File Offset: 0x0006A060
29 {
31 this.p = p;
32 if (!true)
33 {
34 }
35 }
36
37 // Token: 0x06001A35 RID: 6709 RVA: 0x0006BE84 File Offset: 0x0006A084
38 internal T1 Load<T1>(string A_1) where T1 : class
39 {
41 do
42 {
43 string text = Path.Combine("Content", A_1).Replace("\\", "/");
44 Type type;
45 Type type2;
46 bool flag = type == type2;
47 object obj = Convert.ChangeType(this.LoadTexture2D(text), type);
48 Type type3;
49 bool flag2 = type == type3;
50 bool flag3 = text == "Content/TileShader";
52 Type type4;
53 bool flag4 = type == type4;
55 Type type5;
56 bool flag5 = type == type5;
57 bool flag6 = text == "Content/ScreenShader";
60 if (effect4 == null)
61 {
62 return;
63 }
64 }
65 while (effect4 != null);
66 throw new InvalidCastException();
67 }
68
69 // Token: 0x17000371 RID: 881
70 // (get) Token: 0x06001A36 RID: 6710 RVA: 0x0006BF38 File Offset: 0x0006A138
71 public static bool AsyncLoadStillRequired
72 {
73 get
74 {
75 /*
76An exception occurred when decompiling this method (06001A36)
77
78ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Content.ContentManager::get_AsyncLoadStillRequired()
79
80 ---> System.Exception: Basic block has to end with unconditional control flow.
81{
82 IL_0000:
83 brtrue(IL_0000, ldc.i4:bool(1))
84}
85
86 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
87 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
88 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
89 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
90 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
91 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
92 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
93 --- End of inner exception stack trace ---
94 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
95 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
96*/;
97 }
98 }
99
100 // Token: 0x06001A37 RID: 6711 RVA: 0x0006BF48 File Offset: 0x0006A148
101 public static void UpdateAysncLoad()
102 {
103 if (!true)
104 {
105 }
106 if (!true)
107 {
108 }
110 if (!true)
111 {
112 }
113 Debug.Log("Loaded Texture Assets");
114 double totalMilliseconds = (DateTime.Now - now).TotalMilliseconds;
115 }
116
117 // Token: 0x06001A38 RID: 6712 RVA: 0x0006BF84 File Offset: 0x0006A184
123
124 // Token: 0x06001A39 RID: 6713 RVA: 0x0006BFA8 File Offset: 0x0006A1A8
125 public static ResourceType LoadUnityResource<ResourceType>(string A_0) where ResourceType : global::UnityEngine.Object
126 {
127 global::UnityEngine.Object @object;
128 do
129 {
131 if (@object == null)
132 {
133 return;
134 }
135 }
136 while (@object != null);
137 throw new InvalidCastException();
138 }
139
140 // Token: 0x06001A3A RID: 6714 RVA: 0x0006BFCC File Offset: 0x0006A1CC
142 {
143 IntPtr extra_arg;
144 do
145 {
147 extra_arg = createFunction.extra_arg;
148 IntPtr extra_arg2 = createFunction.extra_arg;
149 IntPtr extra_arg3 = createFunction.extra_arg;
150 if (extra_arg == 0)
151 {
152 return;
153 }
154 }
155 while (extra_arg != 0);
156 throw new InvalidCastException();
157 }
158
159 // Token: 0x06001A3B RID: 6715 RVA: 0x0006C008 File Offset: 0x0006A208
161 {
162 IntPtr extra_arg;
163 do
164 {
166 extra_arg = createFunction.extra_arg;
167 global::UnityEngine.Object @object = Resources.Load(asset);
168 IntPtr extra_arg2 = createFunction.extra_arg;
169 IntPtr extra_arg3 = createFunction.extra_arg;
170 if (extra_arg == 0)
171 {
172 return;
173 }
174 }
175 while (extra_arg != 0);
176 throw new InvalidCastException();
177 }
178
179 // Token: 0x06001A3C RID: 6716 RVA: 0x0006C04C File Offset: 0x0006A24C
181 {
182 IntPtr extra_arg;
183 do
184 {
186 extra_arg = createFunction.extra_arg;
187 global::UnityEngine.Object @object = Resources.Load(asset);
188 global::UnityEngine.Object object2 = Resources.Load(asset2);
189 IntPtr extra_arg2 = createFunction.extra_arg;
190 IntPtr extra_arg3 = createFunction.extra_arg;
191 if (extra_arg == 0)
192 {
193 return;
194 }
195 }
196 while (extra_arg != 0);
197 throw new InvalidCastException();
198 }
199
200 // Token: 0x06001A3D RID: 6717 RVA: 0x000021DB File Offset: 0x000003DB
201 private static object CreateTextureAsset(object resource)
202 {
203 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
204 }
205
206 // Token: 0x06001A3E RID: 6718 RVA: 0x0006C098 File Offset: 0x0006A298
207 private static object CreateTextureAssets(object resource, object resource2)
208 {
209 /*
210An exception occurred when decompiling this method (06001A3E)
211
212ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object Microsoft.Xna.Framework.Content.ContentManager::CreateTextureAssets(System.Object,System.Object)
213
214 ---> System.Exception: Basic block has to end with unconditional control flow.
215{
216 IL_0003:
217 stloc:Texture2D(var_1_08, callgetter:Texture2D(ContentManager::get_Empty))
218}
219
220 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
221 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
222 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
223 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
224 --- End of inner exception stack trace ---
225 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
226 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
227*/;
228 }
229
230 // Token: 0x17000372 RID: 882
231 // (get) Token: 0x06001A3F RID: 6719 RVA: 0x0006C0B0 File Offset: 0x0006A2B0
232 private static global::UnityEngine.Texture2D Empty
233 {
234 get
235 {
236 /*
237An exception occurred when decompiling this method (06001A3F)
238
239ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.Texture2D Microsoft.Xna.Framework.Content.ContentManager::get_Empty()
240
241 ---> System.Exception: Basic block has to end with unconditional control flow.
242{
243 IL_0000:
244 brtrue(IL_0000, ldc.i4:bool(1))
245}
246
247 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
248 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
249 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
250 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
251 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
252 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
253 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
254 --- End of inner exception stack trace ---
255 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
256 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
257*/;
258 }
259 }
260
261 // Token: 0x06001A40 RID: 6720 RVA: 0x0006C0C0 File Offset: 0x0006A2C0
262 private static object CreateTextureAssetsWithPal(object resource, object resource2, object resource3)
263 {
264 /*
265An exception occurred when decompiling this method (06001A40)
266
267ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Object Microsoft.Xna.Framework.Content.ContentManager::CreateTextureAssetsWithPal(System.Object,System.Object,System.Object)
268
269 ---> System.Exception: Basic block has to end with unconditional control flow.
270{
271 IL_0006:
272 stloc:Texture2D(var_1_0B, callgetter:Texture2D(ContentManager::get_Empty))
273}
274
275 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
276 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
277 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
278 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
279 --- End of inner exception stack trace ---
280 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
281 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
282*/;
283 }
284
285 // Token: 0x06001A41 RID: 6721 RVA: 0x0006C0D8 File Offset: 0x0006A2D8
287 {
288 int size = this._sourceTexturesLoaded._size;
290 }
291
292 // Token: 0x06001A42 RID: 6722 RVA: 0x0006C100 File Offset: 0x0006A300
294 {
295 string text = asset.ToLower();
296 int num = 92;
297 int num2 = 47;
298 string text2 = text.Replace((char)num, (char)num2);
300 bool flag = text2.Contains("images/misc/perlin");
301 bool flag2 = text2.Contains("images/misc/noise");
302 bool flag3 = text2.Contains("images/misc/ripples");
303 bool flag4 = asset.Contains("Fonts/");
304 bool flag5 = asset.StartsWith("Content/Fonts/Mouse_Text_");
305 bool flag6 = asset.StartsWith("Content/Fonts/Death_Text_");
306 bool flag7 = asset.Contains("SplashScreens/");
307 string text3 = asset + "_A";
308 string text4 = asset + "_P";
310 int size = sourceTexturesLoaded._size;
311 object syncRoot = sourceTexturesLoaded._syncRoot;
313 string text5 = asset + "_A";
315 return texture2D;
316 }
317
318 // Token: 0x06001A43 RID: 6723 RVA: 0x0006C21C File Offset: 0x0006A41C
319 private SpriteFont LoadSpriteFont(string asset)
320 {
321 if (!true)
322 {
323 }
324 byte[] bytes = ContentManager.LoadUnityResource<TextAsset>(asset).bytes;
326 if (!true)
327 {
328 }
329 string text2;
330 string text = asset + "_" + text2;
332 if (texture2D == null || texture2D != null)
333 {
334 long num = 0L;
335 if (asset != null)
336 {
337 }
338 if (num != 0L)
339 {
340 throw new OutOfMemoryException();
341 }
342 if (false)
343 {
344 throw new OutOfMemoryException();
345 }
346 }
347 throw new ArrayTypeMismatchException();
348 }
349
350 // Token: 0x06001A44 RID: 6724 RVA: 0x000021DB File Offset: 0x000003DB
351 private static object CreateSoundEffect(object resource)
352 {
353 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
354 }
355
356 // Token: 0x06001A45 RID: 6725 RVA: 0x0006C2B0 File Offset: 0x0006A4B0
357 private SoundEffect LoadSoundEffect(string asset)
358 {
359 if (!true)
360 {
361 }
363 bool flag = string.IsNullOrEmpty(soundEffect.Definition.Id);
364 Debug.LogError("Missing sound " + asset);
365 return soundEffect;
366 }
367
368 // Token: 0x06001A46 RID: 6726 RVA: 0x0006C2E4 File Offset: 0x0006A4E4
369 internal void Unload()
370 {
371 }
372
373 // Token: 0x17000373 RID: 883
374 // (get) Token: 0x06001A47 RID: 6727 RVA: 0x0006C2F4 File Offset: 0x0006A4F4
375 // (set) Token: 0x06001A48 RID: 6728 RVA: 0x0006C308 File Offset: 0x0006A508
376 public string RootDirectory
377 {
379 get
380 {
381 return this.<RootDirectory>k__BackingField;
382 }
384 set
385 {
387 }
388 }
389
390 // Token: 0x06001A49 RID: 6729 RVA: 0x0006C31C File Offset: 0x0006A51C
391 // Note: this type is marked as 'beforefieldinit'.
393 {
394 }
395
396 // Token: 0x040027AD RID: 10157
398
399 // Token: 0x040027AE RID: 10158
401
402 // Token: 0x040027AF RID: 10159
403 private string p;
404
405 // Token: 0x040027B0 RID: 10160
407
408 // Token: 0x040027B1 RID: 10161
409 private static global::UnityEngine.Texture2D emptyTexture;
410
411 // Token: 0x040027B2 RID: 10162
413
414 // Token: 0x040027B3 RID: 10163
416
417 // Token: 0x040027B4 RID: 10164
419
420 // Token: 0x040027B5 RID: 10165
421 private static int total;
422
423 // Token: 0x040027B6 RID: 10166
425 private string <RootDirectory>k__BackingField;
426
427 // Token: 0x020003C4 RID: 964
428 public class TextureLoadEntry
429 {
430 // Token: 0x06001A4A RID: 6730 RVA: 0x0006C330 File Offset: 0x0006A530
431 public bool Update()
432 {
433 bool flag = string.IsNullOrEmpty(this.loadAsset0);
434 bool flag2 = string.IsNullOrEmpty(this.loadAsset1);
435 bool flag3 = string.IsNullOrEmpty(this.loadAsset2);
436 if (Resources.Load(this.loadAsset0) == null || Resources.Load(this.loadAsset1) != null)
437 {
438 long num = 0L;
439 this.request0 = num;
440 if (Resources.Load(this.loadAsset2) == null)
441 {
442 goto IL_0069;
443 }
444 }
445 long num2 = 0L;
447 IL_0069:
448 Action<global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, int> callback = this.Callback;
449 global::UnityEngine.Texture2D texture2D = this.request0;
450 global::UnityEngine.Texture2D texture2D2 = this.request1;
451 int num3 = this.page;
452 return true;
453 }
454
455 // Token: 0x06001A4B RID: 6731 RVA: 0x0006C3C8 File Offset: 0x0006A5C8
457 {
458 }
459
460 // Token: 0x040027B7 RID: 10167
461 public string loadAsset0;
462
463 // Token: 0x040027B8 RID: 10168
464 public string loadAsset1;
465
466 // Token: 0x040027B9 RID: 10169
467 public string loadAsset2;
468
469 // Token: 0x040027BA RID: 10170
470 public global::UnityEngine.Texture2D request0;
471
472 // Token: 0x040027BB RID: 10171
473 public global::UnityEngine.Texture2D request1;
474
475 // Token: 0x040027BC RID: 10172
476 public global::UnityEngine.Texture2D request2;
477
478 // Token: 0x040027BD RID: 10173
479 public int page;
480
481 // Token: 0x040027BE RID: 10174
482 public Action<global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, int> Callback;
483 }
484
485 // Token: 0x020003C5 RID: 965
486 public struct SourceAssetEntry
487 {
488 // Token: 0x06001A4C RID: 6732 RVA: 0x0006C3DC File Offset: 0x0006A5DC
489 public SourceAssetEntry(string asset, int width, int height)
490 {
491 this.Asset = asset;
492 this.Width = width;
493 }
494
495 // Token: 0x040027BF RID: 10175
496 public readonly string Asset;
497
498 // Token: 0x040027C0 RID: 10176
499 public readonly int Width;
500
501 // Token: 0x040027C1 RID: 10177
502 public readonly int Height;
503 }
504 }
505}
class f__AnonymousType0<< Count > j__TPar
Action< global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, int > Callback
Dictionary< string, Microsoft.Xna.Framework.Graphics.Texture2D > _loadedTextures
static ResourceType ConstructFromUnityResources< ResourceType >(string asset, string asset2, ThreadContentRequest.ObjectCreate2 createFunction)
static void LoadUnityTexturePageAsync(string asset0, string asset1, string asset2, int pageIndex, Action< global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, global::UnityEngine.Texture2D, int > loadedCallback)
static List< ContentManager.TextureLoadEntry > LoadingAssets
static ResourceType LoadUnityResource< ResourceType >(string A_0)
static object CreateTextureAsset(object resource)
static ResourceType ConstructFromUnityResource< ResourceType >(string asset, ThreadContentRequest.ObjectCreate createFunction)
ContentManager(IServiceProvider serviceProvider, string p)
static ContentManager.SourceAssetEntry[] sourceAssets
static object CreateSoundEffect(object resource)
static object CreateTextureAssets(object resource, object resource2)
static object CreateTextureAssetsWithPal(object resource, object resource2, object resource3)
List< Microsoft.Xna.Framework.Graphics.Texture2D > _sourceTexturesLoaded
Microsoft.Xna.Framework.Graphics.Texture2D LoadTexture2D(string asset)
static global::UnityEngine.Texture2D emptyTexture
Texture2D(string sourceAsset, int width, int height)
Definition Texture2D.cs:300
static object ChangeType(object value, TypeCode typeCode, IFormatProvider provider)
Definition Convert.cs:73
static string Combine(string path1, string path2)
Definition Path.cs:41
static Encoding Unicode
Definition Encoding.cs:799
static Thread CurrentThread
Definition Thread.cs:381
static void Log(object message)
Definition Debug.cs:51
static void LogError(object message)
Definition Debug.cs:62
static Object Load(string path)
Definition Resources.cs:20
static DateTime Now
Definition DateTime.cs:530