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
UnlockableNPCEntryIcon.cs
Go to the documentation of this file.
1using System;
8using Terraria.ID;
10
12{
13 [global::Cpp2ILInjected.Token(Token = "0x2000943")]
15 {
16 [global::Cpp2ILInjected.Token(Token = "0x600479B")]
17 [global::Cpp2ILInjected.Address(RVA = "0x819C4C", Offset = "0x819C4C", Length = "0xE0")]
18 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
19 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryDatabaseNPCsPopulator), Member = "ModifyEntriesThatNeedIt_NameOverride", MemberParameters = new object[]
20 {
21 typeof(int),
22 typeof(string)
23 }, ReturnType = typeof(void))]
24 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryDatabaseNPCsPopulator), Member = "ModifyEntriesThatNeedIt", ReturnType = typeof(void))]
25 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryDatabaseNPCsPopulator), Member = "AddMultiEntryNPCS_Manual", ReturnType = typeof(void))]
26 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryEntry), Member = "Enemy", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BestiaryEntry))]
27 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryEntry), Member = "TownNPC", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BestiaryEntry))]
28 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(BestiaryEntry), Member = "Critter", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(BestiaryEntry))]
29 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnlockableNPCEntryIcon), Member = "CreateClone", ReturnType = typeof(IEntryIcon))]
30 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 7)]
31 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
32 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = ".ctor", ReturnType = typeof(void))]
33 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "SetDefaults", MemberParameters = new object[]
34 {
35 typeof(int),
37 }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
39 public UnlockableNPCEntryIcon(int npcNetId, float ai0 = 0f, float ai1 = 0f, float ai2 = 0f, float ai3 = 0f, string overrideNameKey = null)
40 {
41 throw null;
42 }
43
44 [global::Cpp2ILInjected.Token(Token = "0x600479C")]
45 [global::Cpp2ILInjected.Address(RVA = "0x81AA60", Offset = "0x81AA60", Length = "0x74")]
46 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
47 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnlockableNPCEntryIcon), Member = ".ctor", MemberParameters = new object[]
48 {
49 typeof(int),
50 typeof(float),
51 typeof(float),
52 typeof(float),
53 typeof(float),
54 typeof(string)
55 }, ReturnType = typeof(void))]
56 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
58 {
59 throw null;
60 }
61
62 [global::Cpp2ILInjected.Token(Token = "0x600479D")]
63 [global::Cpp2ILInjected.Address(RVA = "0x81AAD4", Offset = "0x81AAD4", Length = "0x418")]
64 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
65 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
66 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, NPCID.Sets.NPCBestiaryDrawModifiers>), Member = "TryGetValue", MemberParameters = new object[]
67 {
68 typeof(int),
70 }, ReturnType = typeof(bool))]
71 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(float?), Member = "get_Value", ReturnType = "T")]
72 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnlockableNPCEntryIcon), Member = "UpdatePosition", MemberParameters = new object[] { typeof(EntryIconDrawSettings) }, ReturnType = typeof(void))]
73 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(int?), Member = "get_Value", ReturnType = "T")]
74 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnlockableNPCEntryIcon), Member = "AdjustSpecialSpawnRulesForVisuals", MemberParameters = new object[] { typeof(EntryIconDrawSettings) }, ReturnType = typeof(void))]
75 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnlockableNPCEntryIcon), Member = "SimulateFirstHover", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
76 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "FindFrame", ReturnType = typeof(void))]
77 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Asset<>), Member = "get_IsLoaded", ReturnType = typeof(bool))]
78 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
80 {
81 throw null;
82 }
83
84 [global::Cpp2ILInjected.Token(Token = "0x600479E")]
85 [global::Cpp2ILInjected.Address(RVA = "0x81AEEC", Offset = "0x81AEEC", Length = "0x214")]
86 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
87 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnlockableNPCEntryIcon), Member = "Update", MemberParameters = new object[]
88 {
92 }, ReturnType = typeof(void))]
93 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnlockableNPCEntryIcon), Member = "Draw", MemberParameters = new object[]
94 {
95 typeof(BestiaryUICollectionInfo),
97 typeof(EntryIconDrawSettings)
98 }, ReturnType = typeof(void))]
99 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
100 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Rectangle), Member = "get_Center", ReturnType = typeof(Point))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToVector2", MemberParameters = new object[] { typeof(Point) }, ReturnType = typeof(Vector2))]
102 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
103 {
106 }, ReturnType = typeof(Vector2))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "set_Center", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(void))]
108 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "TopLeft", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(Vector2))]
109 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Size", MemberParameters = new object[] { typeof(Rectangle) }, ReturnType = typeof(Vector2))]
110 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
111 {
112 typeof(float),
113 typeof(float)
114 }, ReturnType = typeof(void))]
115 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
116 {
119 }, ReturnType = typeof(Vector2))]
120 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "set_Bottom", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(void))]
121 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Floor", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Vector2))]
122 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
124 {
125 throw null;
126 }
127
128 [global::Cpp2ILInjected.Token(Token = "0x600479F")]
129 [global::Cpp2ILInjected.Address(RVA = "0x81B100", Offset = "0x81B100", Length = "0x300")]
130 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
131 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnlockableNPCEntryIcon), Member = "Update", MemberParameters = new object[]
132 {
136 }, ReturnType = typeof(void))]
137 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
138 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Dictionary<int, int>), Member = "TryGetValue", MemberParameters = new object[]
139 {
140 typeof(int),
141 typeof(ref int)
142 }, ReturnType = typeof(bool))]
143 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToRotationVector2", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(Vector2))]
144 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Multiply", MemberParameters = new object[]
145 {
147 typeof(float)
148 }, ReturnType = typeof(Vector2))]
149 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Subtraction", MemberParameters = new object[]
150 {
153 }, ReturnType = typeof(Vector2))]
154 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "ToTileCoordinates", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(Point))]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "set_Opacity", MemberParameters = new object[] { typeof(float) }, ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "AI_001_SetRainbowSlimeColor", ReturnType = typeof(void))]
157 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
159 {
160 throw null;
161 }
162
163 [global::Cpp2ILInjected.Token(Token = "0x60047A0")]
164 [global::Cpp2ILInjected.Address(RVA = "0x81B400", Offset = "0x81B400", Length = "0x5C")]
165 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
166 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(UnlockableNPCEntryIcon), Member = "Update", MemberParameters = new object[]
167 {
171 }, ReturnType = typeof(void))]
172 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
173 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "SetFrameSize", ReturnType = typeof(void))]
174 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "FindFrame", ReturnType = typeof(void))]
175 private void SimulateFirstHover(float velocity)
176 {
177 throw null;
178 }
179
180 [global::Cpp2ILInjected.Token(Token = "0x60047A1")]
181 [global::Cpp2ILInjected.Address(RVA = "0x81B45C", Offset = "0x81B45C", Length = "0x380")]
182 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
183 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(UnlockableNPCEntryIcon), Member = "UpdatePosition", MemberParameters = new object[] { typeof(EntryIconDrawSettings) }, ReturnType = typeof(void))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Center", ReturnType = typeof(Vector2))]
186 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Utils), Member = "Size", MemberParameters = new object[] { typeof(Asset<Texture2D>) }, ReturnType = typeof(Vector2))]
187 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Division", MemberParameters = new object[]
188 {
190 typeof(float)
191 }, ReturnType = typeof(Vector2))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SpriteBatch), Member = "Draw", MemberParameters = new object[]
193 {
197 typeof(Color),
198 typeof(float),
200 typeof(float),
202 typeof(float)
203 }, ReturnType = typeof(void))]
204 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(TownNPCProfiles), Member = "GetProfile", MemberParameters = new object[]
205 {
206 typeof(int),
207 typeof(ref ITownNPCProfile)
208 }, ReturnType = typeof(bool))]
209 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "DrawNPCDirect", MemberParameters = new object[]
210 {
212 typeof(NPC),
213 typeof(bool),
215 }, ReturnType = typeof(void))]
216 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 21)]
217 public void Draw(BestiaryUICollectionInfo providedInfo, SpriteBatch spriteBatch, EntryIconDrawSettings settings)
218 {
219 throw null;
220 }
221
222 [global::Cpp2ILInjected.Token(Token = "0x60047A2")]
223 [global::Cpp2ILInjected.Address(RVA = "0x81B7DC", Offset = "0x81B7DC", Length = "0xB8")]
224 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
225 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
226 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Lang), Member = "GetNPCNameValue", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(string))]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(string), Member = "IsNullOrWhiteSpace", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(bool))]
228 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Language), Member = "GetTextValue", MemberParameters = new object[] { typeof(string) }, ReturnType = typeof(string))]
229 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
230 public string GetHoverText(BestiaryUICollectionInfo providedInfo)
231 {
232 throw null;
233 }
234
235 [global::Cpp2ILInjected.Token(Token = "0x60047A3")]
236 [global::Cpp2ILInjected.Address(RVA = "0x81B894", Offset = "0x81B894", Length = "0xC")]
237 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
238 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
239 public bool GetUnlockState(BestiaryUICollectionInfo providedInfo)
240 {
241 throw null;
242 }
243
244 [global::Cpp2ILInjected.Token(Token = "0x400836E")]
245 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
247
248 [global::Cpp2ILInjected.Token(Token = "0x400836F")]
249 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
250 private int _npcNetId;
251
252 [global::Cpp2ILInjected.Token(Token = "0x4008370")]
253 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
254 private NPC _npcCache;
255
256 [global::Cpp2ILInjected.Token(Token = "0x4008371")]
257 [global::Cpp2ILInjected.FieldOffset(Offset = "0x20")]
258 private bool _firstUpdateDone;
259
260 [global::Cpp2ILInjected.Token(Token = "0x4008372")]
261 [global::Cpp2ILInjected.FieldOffset(Offset = "0x28")]
263
264 [global::Cpp2ILInjected.Token(Token = "0x4008373")]
265 [global::Cpp2ILInjected.FieldOffset(Offset = "0x30")]
267
268 [global::Cpp2ILInjected.Token(Token = "0x4008374")]
269 [global::Cpp2ILInjected.FieldOffset(Offset = "0x38")]
270 private string _overrideNameKey;
271 }
272}
class f__AnonymousType0<< Count > j__TPar
string GetHoverText(BestiaryUICollectionInfo providedInfo)
void AdjustSpecialSpawnRulesForVisuals(EntryIconDrawSettings settings)
void Draw(BestiaryUICollectionInfo providedInfo, SpriteBatch spriteBatch, EntryIconDrawSettings settings)
void Update(BestiaryUICollectionInfo providedInfo, Rectangle hitbox, EntryIconDrawSettings settings)
UnlockableNPCEntryIcon(int npcNetId, float ai0=0f, float ai1=0f, float ai2=0f, float ai3=0f, string overrideNameKey=null)
bool GetUnlockState(BestiaryUICollectionInfo providedInfo)