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
Profiles.cs
Go to the documentation of this file.
1using System;
9
11{
12 [global::Cpp2ILInjected.Token(Token = "0x20007FC")]
13 public class Profiles
14 {
15 [global::Cpp2ILInjected.Token(Token = "0x6004194")]
16 [global::Cpp2ILInjected.Address(RVA = "0x78175C", Offset = "0x78175C", Length = "0x8")]
17 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
18 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
19 public Profiles()
20 {
21 throw null;
22 }
23
24 [global::Cpp2ILInjected.Token(Token = "0x20007FD")]
26 {
27 [global::Cpp2ILInjected.Token(Token = "0x6004195")]
28 [global::Cpp2ILInjected.Address(RVA = "0x77FE68", Offset = "0x77FE68", Length = "0x28")]
29 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
30 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
35
36 [global::Cpp2ILInjected.Token(Token = "0x6004196")]
37 [global::Cpp2ILInjected.Address(RVA = "0x781764", Offset = "0x781764", Length = "0x8")]
38 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
39 public int RollVariation()
40 {
41 throw null;
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x6004197")]
45 [global::Cpp2ILInjected.Address(RVA = "0x78176C", Offset = "0x78176C", Length = "0x114")]
46 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
47 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
48 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "IndexInRange", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
49 {
50 typeof(object[]),
51 typeof(int)
52 }, ReturnType = typeof(bool))]
53 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
54 public string GetNameForVariant(NPC npc)
55 {
56 throw null;
57 }
58
59 [global::Cpp2ILInjected.Token(Token = "0x6004198")]
60 [global::Cpp2ILInjected.Address(RVA = "0x781880", Offset = "0x781880", Length = "0x114")]
61 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
62 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "IndexInRange", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
64 {
65 typeof(object[]),
66 typeof(int)
67 }, ReturnType = typeof(bool))]
68 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
70 {
71 throw null;
72 }
73
74 [global::Cpp2ILInjected.Token(Token = "0x6004199")]
75 [global::Cpp2ILInjected.Address(RVA = "0x781994", Offset = "0x781994", Length = "0x114")]
76 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
77 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
78 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils[]), Member = "IndexInRange", MemberTypeParameters = new object[] { typeof(object) }, MemberParameters = new object[]
79 {
80 typeof(object[]),
81 typeof(int)
82 }, ReturnType = typeof(bool))]
83 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
84 public int GetHeadTextureIndex(NPC npc)
85 {
86 throw null;
87 }
88
89 [global::Cpp2ILInjected.Token(Token = "0x4008075")]
90 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
92 }
93
94 [global::Cpp2ILInjected.Token(Token = "0x20007FE")]
96 {
97 [global::Cpp2ILInjected.Token(Token = "0x600419A")]
98 [global::Cpp2ILInjected.Address(RVA = "0x77FBF8", Offset = "0x77FBF8", Length = "0x270")]
99 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
100 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = "LegacyWithSimpleShimmer", MemberParameters = new object[]
101 {
102 typeof(string),
103 typeof(int),
104 typeof(int),
105 typeof(bool),
106 typeof(bool)
107 }, ReturnType = typeof(ITownNPCProfile))]
108 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = ".ctor", ReturnType = typeof(void))]
109 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 10)]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
111 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
112 {
113 typeof(string),
114 typeof(string)
115 }, ReturnType = typeof(string))]
116 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
118 {
119 throw null;
120 }
121
122 [global::Cpp2ILInjected.Token(Token = "0x600419B")]
123 [global::Cpp2ILInjected.Address(RVA = "0x781AA8", Offset = "0x781AA8", Length = "0x8")]
124 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
125 public int RollVariation()
126 {
127 throw null;
128 }
129
130 [global::Cpp2ILInjected.Token(Token = "0x600419C")]
131 [global::Cpp2ILInjected.Address(RVA = "0x781AB0", Offset = "0x781AB0", Length = "0x5C")]
132 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
133 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "getNewNPCName", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(string))]
134 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
135 public string GetNameForVariant(NPC npc)
136 {
137 throw null;
138 }
139
140 [global::Cpp2ILInjected.Token(Token = "0x600419D")]
141 [global::Cpp2ILInjected.Address(RVA = "0x781B0C", Offset = "0x781B0C", Length = "0x30")]
142 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
143 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
145 {
146 throw null;
147 }
148
149 [global::Cpp2ILInjected.Token(Token = "0x600419E")]
150 [global::Cpp2ILInjected.Address(RVA = "0x781B3C", Offset = "0x781B3C", Length = "0x8")]
151 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
152 public int GetHeadTextureIndex(NPC npc)
153 {
154 throw null;
155 }
156
157 [global::Cpp2ILInjected.Token(Token = "0x4008076")]
158 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
159 private string _rootFilePath;
160
161 [global::Cpp2ILInjected.Token(Token = "0x4008077")]
162 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
164
165 [global::Cpp2ILInjected.Token(Token = "0x4008078")]
166 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
168
169 [global::Cpp2ILInjected.Token(Token = "0x4008079")]
170 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
172 }
173
174 [global::Cpp2ILInjected.Token(Token = "0x20007FF")]
176 {
177 [global::Cpp2ILInjected.Token(Token = "0x600419F")]
178 [global::Cpp2ILInjected.Address(RVA = "0x780024", Offset = "0x780024", Length = "0x2E4")]
179 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
180 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = "TransformableWithSimpleShimmer", MemberParameters = new object[]
181 {
182 typeof(string),
183 typeof(int),
184 typeof(int),
185 typeof(bool),
186 typeof(bool)
187 }, ReturnType = typeof(ITownNPCProfile))]
188 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
189 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
191 {
192 typeof(string),
193 typeof(string)
194 }, ReturnType = typeof(string))]
195 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
197 {
198 throw null;
199 }
200
201 [global::Cpp2ILInjected.Token(Token = "0x60041A0")]
202 [global::Cpp2ILInjected.Address(RVA = "0x781B44", Offset = "0x781B44", Length = "0x8")]
203 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
204 public int RollVariation()
205 {
206 throw null;
207 }
208
209 [global::Cpp2ILInjected.Token(Token = "0x60041A1")]
210 [global::Cpp2ILInjected.Address(RVA = "0x781B4C", Offset = "0x781B4C", Length = "0x5C")]
211 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
212 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "getNewNPCName", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(string))]
213 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
214 public string GetNameForVariant(NPC npc)
215 {
216 throw null;
217 }
218
219 [global::Cpp2ILInjected.Token(Token = "0x60041A2")]
220 [global::Cpp2ILInjected.Address(RVA = "0x781BA8", Offset = "0x781BA8", Length = "0x3C")]
221 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
222 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
224 {
225 throw null;
226 }
227
228 [global::Cpp2ILInjected.Token(Token = "0x60041A3")]
229 [global::Cpp2ILInjected.Address(RVA = "0x781BE4", Offset = "0x781BE4", Length = "0x8")]
230 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
231 public int GetHeadTextureIndex(NPC npc)
232 {
233 throw null;
234 }
235
236 [global::Cpp2ILInjected.Token(Token = "0x400807A")]
237 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
238 private string _rootFilePath;
239
240 [global::Cpp2ILInjected.Token(Token = "0x400807B")]
241 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
243
244 [global::Cpp2ILInjected.Token(Token = "0x400807C")]
245 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
247
248 [global::Cpp2ILInjected.Token(Token = "0x400807D")]
249 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
251
252 [global::Cpp2ILInjected.Token(Token = "0x400807E")]
253 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
255 }
256
257 [global::Cpp2ILInjected.Token(Token = "0x2000800")]
259 {
260 [global::Cpp2ILInjected.Token(Token = "0x60041A4")]
261 [global::Cpp2ILInjected.Address(RVA = "0x7813D8", Offset = "0x7813D8", Length = "0x21C")]
262 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
263 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = ".ctor", ReturnType = typeof(void))]
264 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 3)]
265 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = ".ctor", ReturnType = typeof(void))]
266 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
267 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
268 {
269 typeof(string),
270 typeof(string),
271 typeof(string)
272 }, ReturnType = typeof(string))]
273 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = "set_Item", MemberParameters = new object[]
274 {
275 typeof(object),
276 typeof(object)
277 }, ReturnType = typeof(void))]
278 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
280 {
281 throw null;
282 }
283
284 [global::Cpp2ILInjected.Token(Token = "0x60041A5")]
285 [global::Cpp2ILInjected.Address(RVA = "0x781BEC", Offset = "0x781BEC", Length = "0x1D0")]
286 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
287 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
288 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
289 {
290 typeof(string),
291 typeof(string),
292 typeof(string),
293 typeof(string)
294 }, ReturnType = typeof(string))]
295 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = "set_Item", MemberParameters = new object[]
296 {
297 typeof(object),
298 typeof(object)
299 }, ReturnType = typeof(void))]
300 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 9)]
302 {
303 throw null;
304 }
305
306 [global::Cpp2ILInjected.Token(Token = "0x60041A6")]
307 [global::Cpp2ILInjected.Address(RVA = "0x781DBC", Offset = "0x781DBC", Length = "0x68")]
308 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
309 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnifiedRandom), Member = "Next", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
310 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
311 public int RollVariation()
312 {
313 throw null;
314 }
315
316 [global::Cpp2ILInjected.Token(Token = "0x60041A7")]
317 [global::Cpp2ILInjected.Address(RVA = "0x781E24", Offset = "0x781E24", Length = "0xB4")]
318 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
319 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
320 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
321 {
322 typeof(string),
323 typeof(string),
324 typeof(string)
325 }, ReturnType = typeof(string))]
326 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(WorldGen), Member = "get_genRand", ReturnType = typeof(UnifiedRandom))]
327 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "RandomFromCategory", MemberParameters = new object[]
328 {
329 typeof(string),
331 }, ReturnType = typeof(LocalizedText))]
332 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
333 public string GetNameForVariant(NPC npc)
334 {
335 throw null;
336 }
337
338 [global::Cpp2ILInjected.Token(Token = "0x60041A8")]
339 [global::Cpp2ILInjected.Address(RVA = "0x781ED8", Offset = "0x781ED8", Length = "0x11C")]
340 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
341 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
342 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
343 {
344 typeof(string),
345 typeof(string),
346 typeof(string)
347 }, ReturnType = typeof(string))]
348 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
349 {
350 typeof(string),
351 typeof(string)
352 }, ReturnType = typeof(string))]
353 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = "ContainsKey", MemberParameters = new object[] { typeof(object) }, ReturnType = typeof(bool))]
354 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<object, object>), Member = "get_Item", MemberParameters = new object[] { typeof(object) }, ReturnType = "TValue")]
355 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
357 {
358 throw null;
359 }
360
361 [global::Cpp2ILInjected.Token(Token = "0x60041A9")]
362 [global::Cpp2ILInjected.Address(RVA = "0x781FF4", Offset = "0x781FF4", Length = "0x14")]
363 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
364 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
365 public int GetHeadTextureIndex(NPC npc)
366 {
367 throw null;
368 }
369
370 [global::Cpp2ILInjected.Token(Token = "0x400807F")]
371 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
372 private string _rootFilePath;
373
374 [global::Cpp2ILInjected.Token(Token = "0x4008080")]
375 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
376 private string _npcBaseName;
377
378 [global::Cpp2ILInjected.Token(Token = "0x4008081")]
379 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
380 private int[] _variantHeadIDs;
381
382 [global::Cpp2ILInjected.Token(Token = "0x4008082")]
383 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
384 private string[] _variants;
385
386 [global::Cpp2ILInjected.Token(Token = "0x4008083")]
387 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
389 }
390 }
391}
class f__AnonymousType0<< Count > j__TPar
Asset< Texture2D > GetTextureNPCShouldUse(NPC npc)
Definition Profiles.cs:144
LegacyNPCProfile(string npcFileTitleFilePath, int defaultHeadIndex, bool includeDefault=true, bool uniquePartyTexture=true)
Definition Profiles.cs:117
Asset< Texture2D > GetTextureNPCShouldUse(NPC npc)
Definition Profiles.cs:69
StackedNPCProfile(params ITownNPCProfile[] profilesInOrderOfVariants)
Definition Profiles.cs:31
Asset< Texture2D > GetTextureNPCShouldUse(NPC npc)
Definition Profiles.cs:223
TransformableNPCProfile(string npcFileTitleFilePath, int defaultHeadIndex, bool includeCredits=true)
Definition Profiles.cs:196
VariantNPCProfile(string npcFileTitleFilePath, string npcBaseName, int[] variantHeadIds, params string[] variantTextureNames)
Definition Profiles.cs:279
Asset< Texture2D > GetTextureNPCShouldUse(NPC npc)
Definition Profiles.cs:356
Dictionary< string, Asset< Texture2D > > _variantTextures
Definition Profiles.cs:388
Profiles.VariantNPCProfile SetPartyTextures(params string[] variantTextureNames)
Definition Profiles.cs:301