terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
TextureManager.cs
Go to the documentation of this file.
1using System;
9using Terraria.IO;
10
11namespace Terraria.Graphics
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000734")]
14 internal static class TextureManager
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x6003D06")]
17 [global::Cpp2ILInjected.Address(RVA = "0x1499D34", Offset = "0x1499D34", Length = "0xCC")]
18 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
19 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(GraphicsDeviceManager), Member = "get_GraphicsDevice", ReturnType = typeof(GraphicsDevice))]
20 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Texture2D), Member = ".ctor", MemberParameters = new object[]
21 {
23 typeof(int),
24 typeof(int)
25 }, ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
27 public static void Initialize()
28 {
29 throw null;
30 }
31
32 [global::Cpp2ILInjected.Token(Token = "0x6003D07")]
33 [global::Cpp2ILInjected.Address(RVA = "0x1499E00", Offset = "0x1499E00", Length = "0x244")]
34 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIWorldOperationProgress), Member = "GetIcon", ReturnType = typeof(Texture2D))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIAchievementsMenu), Member = "LoadContent", ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMultiplayerHost), Member = "GetIcon", MemberParameters = new object[] { typeof(WorldFileData) }, ReturnType = typeof(Texture2D))]
38 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMultiplayerLobby), Member = "GetIcon", MemberParameters = new object[] { typeof(GUIMultiplayerLobby.ServerInformation) }, ReturnType = typeof(Texture2D))]
39 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIWorldSelectMenu), Member = "GetIcon", MemberParameters = new object[] { typeof(WorldFileData) }, ReturnType = typeof(Texture2D))]
40 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIWorldSelectMenu), Member = "GetSeedIcon", MemberParameters = new object[]
41 {
43 typeof(string)
44 }, ReturnType = typeof(Texture2D))]
45 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUISaveSynchronisation_FileList), Member = "GetWorldIcon", MemberParameters = new object[] { typeof(WorldFileData) }, ReturnType = typeof(Texture2D))]
46 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TextureManager), Member = "Retrieve", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Ref<Texture2D>))]
47 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TextureManager), Member = "Run", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
48 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 12)]
49 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentDictionary<object, object>), Member = "ContainsKey", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(bool))]
50 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentDictionary<object, object>), Member = "get_Item", MemberParameters = new object[] { typeof(object) }, ReturnType = "TValue")]
51 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "op_Inequality", MemberParameters = new object[]
52 {
53 typeof(string),
54 typeof(string)
55 }, ReturnType = typeof(bool))]
56 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ContentManager), Member = "Load", MemberTypeParameters = new object[] { "T1" }, MemberParameters = new object[] { typeof(string) }, ReturnType = "T1")]
57 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentDictionary<object, object>), Member = "set_Item", MemberParameters = new object[]
58 {
59 typeof(object),
60 typeof(object)
61 }, ReturnType = typeof(void))]
62 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 24)]
63 public static Texture2D Load(string name)
64 {
65 throw null;
66 }
67
68 [global::Cpp2ILInjected.Token(Token = "0x6003D08")]
69 [global::Cpp2ILInjected.Address(RVA = "0x149A044", Offset = "0x149A044", Length = "0xA4")]
70 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TextureManager), Member = "Load", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Texture2D))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Ref<object>), Member = ".ctor", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
74 public static Ref<Texture2D> Retrieve(string name)
75 {
76 throw null;
77 }
78
79 [global::Cpp2ILInjected.Token(Token = "0x6003D09")]
80 [global::Cpp2ILInjected.Address(RVA = "0x149A0E8", Offset = "0x149A0E8", Length = "0x118")]
81 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
82 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Enter", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(void))]
83 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentQueue<TextureManager.LoadPair>), Member = "get_Count", ReturnType = typeof(int))]
84 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentQueue<TextureManager.LoadPair>), Member = "TryDequeue", MemberParameters = new object[] { typeof(ref TextureManager.LoadPair) }, ReturnType = typeof(bool))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TextureManager), Member = "Load", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(Texture2D))]
86 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Monitor), Member = "Wait", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(bool))]
87 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
88 public static void Run(object context)
89 {
90 throw null;
91 }
92
93 // Note: this type is marked as 'beforefieldinit'.
94 [global::Cpp2ILInjected.Token(Token = "0x6003D0A")]
95 [global::Cpp2ILInjected.Address(RVA = "0x149A200", Offset = "0x149A200", Length = "0x110")]
96 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
97 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentDictionary<object, object>), Member = ".ctor", ReturnType = typeof(void))]
98 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ConcurrentQueue<TextureManager.LoadPair>), Member = ".ctor", ReturnType = typeof(void))]
99 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
100 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
102 {
103 throw null;
104 }
105
106 [global::Cpp2ILInjected.Token(Token = "0x4007BFE")]
108
109 [global::Cpp2ILInjected.Token(Token = "0x4007BFF")]
111
112 [global::Cpp2ILInjected.Token(Token = "0x4007C00")]
113 private static Thread _loadThread;
114
115 [global::Cpp2ILInjected.Token(Token = "0x4007C01")]
116 private static readonly object _loadThreadLock;
117
118 [global::Cpp2ILInjected.Token(Token = "0x4007C02")]
119 public static Texture2D BlankTexture;
120
121 [global::Cpp2ILInjected.Token(Token = "0x2000735")]
122 private struct LoadPair
123 {
124 [global::Cpp2ILInjected.Token(Token = "0x6003D0B")]
125 [global::Cpp2ILInjected.Address(RVA = "0x149A310", Offset = "0x149A310", Length = "0x8")]
126 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
127 public LoadPair(string path, Ref<Texture2D> textureRef)
128 {
129 throw null;
130 }
131
132 [global::Cpp2ILInjected.Token(Token = "0x4007C03")]
133 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
134 public string Path;
135
136 [global::Cpp2ILInjected.Token(Token = "0x4007C04")]
137 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
139 }
140 }
141}
class f__AnonymousType0<< Count > j__TPar
static Ref< Texture2D > Retrieve(string name)
static readonly object _loadThreadLock
static ConcurrentDictionary< string, Texture2D > _textures
static Texture2D Load(string name)
static ConcurrentQueue< TextureManager.LoadPair > _loadQueue
static void Run(object context)
LoadPair(string path, Ref< Texture2D > textureRef)