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
TownNPCProfiles.cs
Go to the documentation of this file.
1using System;
10
12{
13 [global::Cpp2ILInjected.Token(Token = "0x20007FA")]
14 public class TownNPCProfiles
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x600418A")]
17 [global::Cpp2ILInjected.Address(RVA = "0x77F9FC", Offset = "0x77F9FC", Length = "0x60")]
18 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIQuickActionButton), Member = "CanInteract", MemberParameters = new object[]
19 {
21 typeof(Item),
24 typeof(ref bool)
25 }, ReturnType = typeof(bool))]
26 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIHousingMenu), Member = "RefreshNPCEntries", ReturnType = typeof(void))]
27 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIHousingMenu), Member = "NPCDraw", MemberParameters = new object[]
28 {
30 typeof(int),
32 typeof(float)
33 }, ReturnType = typeof(void))]
34 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIMap), Member = "DrawMap", ReturnType = typeof(void))]
35 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(GUIVirtualInputController), Member = "DrawControls", ReturnType = typeof(void))]
36 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawNPCCheckAlt", MemberParameters = new object[] { typeof(NPC) }, ReturnType = typeof(void))]
37 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "GiveTownUniqueDataToNPCsThatNeedIt", MemberParameters = new object[]
38 {
39 typeof(int),
40 typeof(int)
41 }, ReturnType = typeof(void))]
42 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "RerollVariation", ReturnType = typeof(bool))]
43 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = "GetHeadIndexSafe", MemberParameters = new object[] { typeof(NPC) }, ReturnType = typeof(int))]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnlockableNPCEntryIcon), Member = "Draw", MemberParameters = new object[]
45 {
49 }, ReturnType = typeof(void))]
50 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Segments.NPCSegment), Member = "Draw", MemberParameters = new object[] { typeof(ref GameAnimationSegment) }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 13)]
52 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "TryGetValue", MemberParameters = new object[]
53 {
54 typeof(int),
55 typeof(ref object)
56 }, ReturnType = typeof(bool))]
57 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
58 public bool GetProfile(int npcId, out ITownNPCProfile profile)
59 {
60 throw null;
61 }
62
63 [global::Cpp2ILInjected.Token(Token = "0x600418B")]
64 [global::Cpp2ILInjected.Address(RVA = "0x77FA5C", Offset = "0x77FA5C", Length = "0x19C")]
65 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = ".ctor", ReturnType = typeof(void))]
66 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 28)]
67 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
68 {
69 typeof(string),
70 typeof(string)
71 }, ReturnType = typeof(string))]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Profiles.LegacyNPCProfile), Member = ".ctor", MemberParameters = new object[]
73 {
74 typeof(string),
75 typeof(int),
76 typeof(bool),
77 typeof(bool)
78 }, ReturnType = typeof(void))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
80 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
82 {
83 throw null;
84 }
85
86 [global::Cpp2ILInjected.Token(Token = "0x600418C")]
87 [global::Cpp2ILInjected.Address(RVA = "0x77FE90", Offset = "0x77FE90", Length = "0x194")]
88 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = ".ctor", ReturnType = typeof(void))]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "Concat", MemberParameters = new object[]
91 {
92 typeof(string),
93 typeof(string)
94 }, ReturnType = typeof(string))]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Profiles.TransformableNPCProfile), Member = ".ctor", MemberParameters = new object[]
96 {
97 typeof(string),
98 typeof(int),
99 typeof(bool)
100 }, ReturnType = typeof(void))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
102 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 13)]
104 {
105 throw null;
106 }
107
108 [global::Cpp2ILInjected.Token(Token = "0x600418D")]
109 [global::Cpp2ILInjected.Address(RVA = "0x780308", Offset = "0x780308", Length = "0x128")]
110 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
111 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawNPCHousesInWorld", ReturnType = typeof(void))]
112 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(Main), Member = "DrawInterface_38_MouseCarriedObject", ReturnType = typeof(void))]
113 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
114 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TownNPCProfiles), Member = "GetProfile", MemberParameters = new object[]
115 {
116 typeof(int),
118 }, ReturnType = typeof(bool))]
119 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "TypeToDefaultHeadIndex", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(int))]
120 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
121 public static int GetHeadIndexSafe(NPC npc)
122 {
123 throw null;
124 }
125
126 [global::Cpp2ILInjected.Token(Token = "0x600418E")]
127 [global::Cpp2ILInjected.Address(RVA = "0x780430", Offset = "0x780430", Length = "0xFA8")]
128 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(TownNPCProfiles), Member = ".cctor", ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = ".ctor", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TownNPCProfiles), Member = "LegacyWithSimpleShimmer", MemberParameters = new object[]
132 {
133 typeof(string),
134 typeof(int),
135 typeof(int),
136 typeof(bool),
137 typeof(bool)
138 }, ReturnType = typeof(ITownNPCProfile))]
139 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, object>), Member = "Add", MemberParameters = new object[]
140 {
141 typeof(int),
142 typeof(object)
143 }, ReturnType = typeof(void))]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TownNPCProfiles), Member = "TransformableWithSimpleShimmer", MemberParameters = new object[]
145 {
146 typeof(string),
147 typeof(int),
148 typeof(int),
149 typeof(bool),
150 typeof(bool)
151 }, ReturnType = typeof(ITownNPCProfile))]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Profiles.VariantNPCProfile), Member = ".ctor", MemberParameters = new object[]
153 {
154 typeof(string),
155 typeof(string),
156 typeof(int[]),
157 typeof(string[])
158 }, ReturnType = typeof(void))]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Profiles.LegacyNPCProfile), Member = ".ctor", MemberParameters = new object[]
160 {
161 typeof(string),
162 typeof(int),
163 typeof(bool),
164 typeof(bool)
165 }, ReturnType = typeof(void))]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
167 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 102)]
169 {
170 throw null;
171 }
172
173 // Note: this type is marked as 'beforefieldinit'.
174 [global::Cpp2ILInjected.Token(Token = "0x600418F")]
175 [global::Cpp2ILInjected.Address(RVA = "0x7815F4", Offset = "0x7815F4", Length = "0x168")]
176 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
177 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(RuntimeHelpers), Member = "InitializeArray", MemberParameters = new object[]
178 {
179 typeof(Array),
181 }, ReturnType = typeof(void))]
182 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TownNPCProfiles), Member = ".ctor", ReturnType = typeof(void))]
183 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 11)]
185 {
186 throw null;
187 }
188
189 [global::Cpp2ILInjected.Token(Token = "0x400806D")]
190 private const string DefaultNPCFileFolderPath = "Images/TownNPCs/";
191
192 [global::Cpp2ILInjected.Token(Token = "0x400806E")]
193 private const string ShimmeredNPCFileFolderPath = "Images/TownNPCs/Shimmered/";
194
195 [global::Cpp2ILInjected.Token(Token = "0x400806F")]
196 private static readonly int[] CatHeadIDs;
197
198 [global::Cpp2ILInjected.Token(Token = "0x4008070")]
199 private static readonly int[] DogHeadIDs;
200
201 [global::Cpp2ILInjected.Token(Token = "0x4008071")]
202 private static readonly int[] BunnyHeadIDs;
203
204 [global::Cpp2ILInjected.Token(Token = "0x4008072")]
205 private static readonly int[] SlimeHeadIDs;
206
207 [global::Cpp2ILInjected.Token(Token = "0x4008073")]
208 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
210
211 [global::Cpp2ILInjected.Token(Token = "0x4008074")]
213 }
214}
class f__AnonymousType0<< Count > j__TPar
bool GetProfile(int npcId, out ITownNPCProfile profile)
Dictionary< int, ITownNPCProfile > _townNPCProfiles
static ITownNPCProfile TransformableWithSimpleShimmer(string subPath, int headIdNormal, int headIdShimmered, bool uniqueCreditTexture=true, bool uniqueCreditTextureShimmered=true)
static ITownNPCProfile LegacyWithSimpleShimmer(string subPath, int headIdNormal, int headIdShimmered, bool uniquePartyTexture=true, bool uniquePartyTextureShimmered=true)