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
NPCUtils.cs
Go to the documentation of this file.
1using System;
6
7namespace Terraria.Utilities
8{
9 [global::Cpp2ILInjected.Token(Token = "0x20004FD")]
10 public static class NPCUtils
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x60030F1")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1302294", Offset = "0x1302294", Length = "0x3C")]
14 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
15 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
16 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
17 {
18 typeof(NPC),
21 typeof(float),
22 typeof(int)
23 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
25 {
26 throw null;
27 }
28
29 [global::Cpp2ILInjected.Token(Token = "0x60030F2")]
30 [global::Cpp2ILInjected.Address(RVA = "0x1302800", Offset = "0x1302800", Length = "0x70")]
31 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
32 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestOldOnesInvasion", MemberParameters = new object[]
33 {
34 typeof(NPC),
35 typeof(bool),
37 }, ReturnType = typeof(void))]
38 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestNonBees", MemberParameters = new object[]
39 {
40 typeof(NPC),
41 typeof(bool),
43 }, ReturnType = typeof(void))]
44 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestDownwindFromNPC", MemberParameters = new object[]
45 {
46 typeof(NPC),
47 typeof(float),
48 typeof(bool),
50 }, ReturnType = typeof(void))]
51 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestBetsy", MemberParameters = new object[]
52 {
53 typeof(NPC),
54 typeof(bool),
56 }, ReturnType = typeof(void))]
57 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
58 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Center", ReturnType = typeof(Vector2))]
59 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
60 {
61 typeof(NPC),
63 typeof(NPCUtils.TargetSearchFlag),
64 typeof(float),
65 typeof(int)
66 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
68 {
69 throw null;
70 }
71
72 [global::Cpp2ILInjected.Token(Token = "0x60030F3")]
73 [global::Cpp2ILInjected.Address(RVA = "0x13022D0", Offset = "0x13022D0", Length = "0x530")]
74 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
75 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
76 {
79 typeof(float),
80 typeof(int)
81 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
82 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
83 {
84 typeof(NPC),
85 typeof(NPCUtils.TargetSearchFlag),
86 typeof(float),
87 typeof(int)
88 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
89 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
90 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "CanBeChasedBy", MemberParameters = new object[]
91 {
92 typeof(object),
93 typeof(bool)
94 }, ReturnType = typeof(bool))]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Center", ReturnType = typeof(Vector2))]
96 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "DistanceSquared", MemberParameters = new object[]
97 {
100 }, ReturnType = typeof(float))]
101 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "Distance", MemberParameters = new object[]
102 {
105 }, ReturnType = typeof(float))]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Collision), Member = "CanHit", MemberParameters = new object[]
107 {
109 typeof(int),
110 typeof(int),
112 typeof(int),
113 typeof(int)
114 }, ReturnType = typeof(bool))]
115 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 14)]
117 {
118 throw null;
119 }
120
121 [global::Cpp2ILInjected.Token(Token = "0x60030F4")]
122 [global::Cpp2ILInjected.Address(RVA = "0x13028C0", Offset = "0x13028C0", Length = "0x90")]
123 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_107_ImprovedWalkers", ReturnType = typeof(void))]
124 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_108_DivingFlyer", ReturnType = typeof(void))]
125 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_109_DarkMage", ReturnType = typeof(void))]
126 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_111_DD2LightningBug", ReturnType = typeof(void))]
127 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 7)]
128 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
129 {
130 typeof(NPC),
132 typeof(float),
133 typeof(int)
134 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
135 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetIndex", ReturnType = typeof(int))]
136 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetHitbox", ReturnType = typeof(Rectangle))]
137 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "ShouldFaceTarget", MemberParameters = new object[]
138 {
139 typeof(ref NPCUtils.TargetSearchResults),
140 typeof(NPCUtils.TargetType?)
141 }, ReturnType = typeof(bool))]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "FaceTarget", ReturnType = typeof(void))]
144 {
145 throw null;
146 }
147
148 [global::Cpp2ILInjected.Token(Token = "0x60030F5")]
149 [global::Cpp2ILInjected.Address(RVA = "0x1302AB0", Offset = "0x1302AB0", Length = "0x8C")]
150 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_005_EaterOfSouls", ReturnType = typeof(void))]
151 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
152 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
153 {
154 typeof(NPC),
156 typeof(float),
157 typeof(int)
158 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
159 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetIndex", ReturnType = typeof(int))]
160 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetHitbox", ReturnType = typeof(Rectangle))]
161 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "ShouldFaceTarget", MemberParameters = new object[]
162 {
163 typeof(ref NPCUtils.TargetSearchResults),
164 typeof(NPCUtils.TargetType?)
165 }, ReturnType = typeof(bool))]
166 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "FaceTarget", ReturnType = typeof(void))]
167 public static void TargetClosestNonBees(NPC searcher, bool faceTarget = true, Vector2? checkPosition = null)
168 {
169 throw null;
170 }
171
172 [global::Cpp2ILInjected.Token(Token = "0x60030F6")]
173 [global::Cpp2ILInjected.Address(RVA = "0x1302B3C", Offset = "0x1302B3C", Length = "0x88")]
174 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_119_Dandelion", ReturnType = typeof(void))]
175 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
176 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
177 {
178 typeof(NPC),
180 typeof(float),
181 typeof(int)
182 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
183 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetIndex", ReturnType = typeof(int))]
184 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetHitbox", ReturnType = typeof(Rectangle))]
185 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "ShouldFaceTarget", MemberParameters = new object[]
186 {
187 typeof(ref NPCUtils.TargetSearchResults),
188 typeof(NPCUtils.TargetType?)
189 }, ReturnType = typeof(bool))]
190 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "FaceTarget", ReturnType = typeof(void))]
192 {
193 throw null;
194 }
195
196 [global::Cpp2ILInjected.Token(Token = "0x60030F7")]
197 [global::Cpp2ILInjected.Address(RVA = "0x1302BC4", Offset = "0x1302BC4", Length = "0xC")]
198 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_107_ImprovedWalkers", ReturnType = typeof(void))]
199 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
200 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "TargetClosest", MemberParameters = new object[] { typeof(bool) }, ReturnType = typeof(void))]
201 public static void TargetClosestCommon(NPC searcher, bool faceTarget = true, Vector2? checkPosition = null)
202 {
203 throw null;
204 }
205
206 [global::Cpp2ILInjected.Token(Token = "0x60030F8")]
207 [global::Cpp2ILInjected.Address(RVA = "0x1302BD0", Offset = "0x1302BD0", Length = "0xF8")]
208 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
209 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "AI_110_Betsy", ReturnType = typeof(void))]
210 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
211 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils), Member = "SearchForTarget", MemberParameters = new object[]
212 {
213 typeof(NPC),
215 typeof(float),
216 typeof(int)
217 }, ReturnType = typeof(NPCUtils.TargetSearchResults))]
218 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTankOwner", ReturnType = typeof(Player))]
219 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetIndex", ReturnType = typeof(int))]
220 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetHitbox", ReturnType = typeof(Rectangle))]
221 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Int32Enum?), Member = ".ctor", MemberParameters = new object[] { "System.Int32Enum" }, ReturnType = typeof(void))]
222 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "ShouldFaceTarget", MemberParameters = new object[]
223 {
224 typeof(ref NPCUtils.TargetSearchResults),
225 typeof(NPCUtils.TargetType?)
226 }, ReturnType = typeof(bool))]
227 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "FaceTarget", ReturnType = typeof(void))]
228 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 1)]
229 public static void TargetClosestBetsy(NPC searcher, bool faceTarget = true, Vector2? checkPosition = null)
230 {
231 throw null;
232 }
233
234 [global::Cpp2ILInjected.Token(Token = "0x4003AD7")]
235 public const int NPCSearchFilter_OnlyCrystal = 1;
236
237 [global::Cpp2ILInjected.Token(Token = "0x4003AD8")]
238 public const int NPCSearchFilter_NonBeeNPCs = 2;
239
240 [global::Cpp2ILInjected.Token(Token = "0x4003AD9")]
241 public const int NPCSearchFilter_DownWind = 3;
242
243 [global::Cpp2ILInjected.Token(Token = "0x20004FE")]
244 public delegate bool SearchFilter<T>(T entity) where T : Entity;
245
246 [global::Cpp2ILInjected.Token(Token = "0x20004FF")]
248
249 [global::Cpp2ILInjected.Token(Token = "0x2000500")]
250 public static class SearchFilters
251 {
252 [global::Cpp2ILInjected.Token(Token = "0x6003101")]
253 [global::Cpp2ILInjected.Address(RVA = "0x1302F74", Offset = "0x1302F74", Length = "0x24")]
254 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
255 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
256 public static bool OnlyCrystal(NPC npc)
257 {
258 throw null;
259 }
260
261 [global::Cpp2ILInjected.Token(Token = "0x6003102")]
262 [global::Cpp2ILInjected.Address(RVA = "0x1302F98", Offset = "0x1302F98", Length = "0xC4")]
263 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
264 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
265 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.SearchFilter<>), Member = ".ctor", MemberParameters = new object[]
266 {
267 typeof(object),
268 typeof(IntPtr)
269 }, ReturnType = typeof(void))]
270 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
271 public static NPCUtils.SearchFilter<Player> OnlyPlayersInCertainDistance(Vector2 position, float maxDistance)
272 {
273 throw null;
274 }
275
276 [global::Cpp2ILInjected.Token(Token = "0x6003103")]
277 [global::Cpp2ILInjected.Address(RVA = "0x1303064", Offset = "0x1303064", Length = "0x3C")]
278 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
279 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
280 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "CanBeChasedBy", MemberParameters = new object[]
281 {
282 typeof(object),
283 typeof(bool)
284 }, ReturnType = typeof(bool))]
285 public static bool NonBeeNPCs(NPC npc)
286 {
287 throw null;
288 }
289
290 [global::Cpp2ILInjected.Token(Token = "0x6003104")]
291 [global::Cpp2ILInjected.Address(RVA = "0x13030A0", Offset = "0x13030A0", Length = "0xB8")]
292 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
293 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
294 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.SearchFilter<>), Member = ".ctor", MemberParameters = new object[]
295 {
296 typeof(object),
298 }, ReturnType = typeof(void))]
299 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 5)]
300 public static NPCUtils.SearchFilter<Player> DownwindFromNPC(NPC npc, float maxDistanceX)
301 {
302 throw null;
303 }
304
306 [global::Cpp2ILInjected.Token(Token = "0x2000501")]
307 private sealed class <>c__DisplayClass1_0
308 {
309 [global::Cpp2ILInjected.Token(Token = "0x6003105")]
310 [global::Cpp2ILInjected.Address(RVA = "0x130305C", Offset = "0x130305C", Length = "0x8")]
311 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
312 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
314 {
315 throw null;
316 }
317
318 [global::Cpp2ILInjected.Token(Token = "0x6003106")]
319 [global::Cpp2ILInjected.Address(RVA = "0x1303160", Offset = "0x1303160", Length = "0x2C")]
320 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
321 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
322 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "Distance", MemberParameters = new object[] { typeof(Vector2) }, ReturnType = typeof(float))]
324 {
325 throw null;
326 }
327
328 [global::Cpp2ILInjected.Token(Token = "0x4003ADA")]
329 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
330 public Vector2 position;
331
332 [global::Cpp2ILInjected.Token(Token = "0x4003ADB")]
333 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
334 public float maxDistance;
335 }
336
338 [global::Cpp2ILInjected.Token(Token = "0x2000502")]
339 private sealed class <>c__DisplayClass3_0
340 {
341 [global::Cpp2ILInjected.Token(Token = "0x6003107")]
342 [global::Cpp2ILInjected.Address(RVA = "0x1303158", Offset = "0x1303158", Length = "0x8")]
343 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
344 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
346 {
347 throw null;
348 }
349
350 [global::Cpp2ILInjected.Token(Token = "0x6003108")]
351 [global::Cpp2ILInjected.Address(RVA = "0x130318C", Offset = "0x130318C", Length = "0x148")]
352 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
353 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
354 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Center", ReturnType = typeof(Vector2))]
355 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 4)]
356 internal bool <DownwindFromNPC>b__0(Player player)
357 {
358 throw null;
359 }
360
361 [global::Cpp2ILInjected.Token(Token = "0x4003ADC")]
362 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
363 public NPC npc;
364
365 [global::Cpp2ILInjected.Token(Token = "0x4003ADD")]
366 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
367 public float maxDistanceX;
368 }
369 }
370
371 [global::Cpp2ILInjected.Token(Token = "0x2000503")]
372 public enum TargetType
373 {
374 [global::Cpp2ILInjected.Token(Token = "0x4003ADF")]
375 None,
376 [global::Cpp2ILInjected.Token(Token = "0x4003AE0")]
377 NPC,
378 [global::Cpp2ILInjected.Token(Token = "0x4003AE1")]
379 Player,
380 [global::Cpp2ILInjected.Token(Token = "0x4003AE2")]
381 TankPet
382 }
383
384 [global::Cpp2ILInjected.Token(Token = "0x2000504")]
386 {
387 [global::Cpp2ILInjected.Token(Token = "0x17000616")]
389 {
390 [global::Cpp2ILInjected.Token(Token = "0x6003109")]
391 [global::Cpp2ILInjected.Address(RVA = "0x1302960", Offset = "0x1302960", Length = "0x40")]
392 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
393 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestOldOnesInvasion", MemberParameters = new object[]
394 {
395 typeof(NPC),
396 typeof(bool),
398 }, ReturnType = typeof(void))]
399 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestNonBees", MemberParameters = new object[]
400 {
401 typeof(NPC),
402 typeof(bool),
404 }, ReturnType = typeof(void))]
405 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestDownwindFromNPC", MemberParameters = new object[]
406 {
407 typeof(NPC),
408 typeof(float),
409 typeof(bool),
411 }, ReturnType = typeof(void))]
412 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestBetsy", MemberParameters = new object[]
413 {
414 typeof(NPC),
415 typeof(bool),
417 }, ReturnType = typeof(void))]
418 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
419 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestNPC", ReturnType = typeof(NPC))]
420 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPC), Member = "get_WhoAmIToTargettingIndex", ReturnType = typeof(int))]
421 get
422 {
423 throw null;
424 }
425 }
426
427 [global::Cpp2ILInjected.Token(Token = "0x17000617")]
429 {
430 [global::Cpp2ILInjected.Token(Token = "0x600310A")]
431 [global::Cpp2ILInjected.Address(RVA = "0x13029A0", Offset = "0x13029A0", Length = "0x110")]
432 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
433 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestOldOnesInvasion", MemberParameters = new object[]
434 {
435 typeof(NPC),
436 typeof(bool),
438 }, ReturnType = typeof(void))]
439 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestNonBees", MemberParameters = new object[]
440 {
441 typeof(NPC),
442 typeof(bool),
444 }, ReturnType = typeof(void))]
445 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestDownwindFromNPC", MemberParameters = new object[]
446 {
447 typeof(NPC),
448 typeof(float),
449 typeof(bool),
451 }, ReturnType = typeof(void))]
452 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestBetsy", MemberParameters = new object[]
453 {
454 typeof(NPC),
455 typeof(bool),
457 }, ReturnType = typeof(void))]
458 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
459 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTankOwner", ReturnType = typeof(Player))]
460 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestNPC", ReturnType = typeof(NPC))]
461 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Entity), Member = "get_Hitbox", ReturnType = typeof(Rectangle))]
462 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 6)]
463 get
464 {
465 throw null;
466 }
467 }
468
469 [global::Cpp2ILInjected.Token(Token = "0x17000618")]
471 {
472 [global::Cpp2ILInjected.Token(Token = "0x600310B")]
473 [global::Cpp2ILInjected.Address(RVA = "0x1303350", Offset = "0x1303350", Length = "0x8")]
474 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
475 get
476 {
477 throw null;
478 }
479 }
480
481 [global::Cpp2ILInjected.Token(Token = "0x17000619")]
482 public bool FoundTarget
483 {
484 [global::Cpp2ILInjected.Token(Token = "0x600310C")]
485 [global::Cpp2ILInjected.Address(RVA = "0x1302950", Offset = "0x1302950", Length = "0x10")]
486 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
487 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
488 get
489 {
490 throw null;
491 }
492 }
493
494 [global::Cpp2ILInjected.Token(Token = "0x1700061A")]
496 {
497 [global::Cpp2ILInjected.Token(Token = "0x600310D")]
498 [global::Cpp2ILInjected.Address(RVA = "0x13032D4", Offset = "0x13032D4", Length = "0x7C")]
499 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetIndex", ReturnType = typeof(int))]
500 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetHitbox", ReturnType = typeof(Rectangle))]
501 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
502 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
503 get
504 {
505 throw null;
506 }
507 }
508
509 [global::Cpp2ILInjected.Token(Token = "0x1700061B")]
510 public bool FoundNPC
511 {
512 [global::Cpp2ILInjected.Token(Token = "0x600310E")]
513 [global::Cpp2ILInjected.Address(RVA = "0x1303358", Offset = "0x1303358", Length = "0x10")]
514 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
515 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
516 get
517 {
518 throw null;
519 }
520 }
521
522 [global::Cpp2ILInjected.Token(Token = "0x1700061C")]
524 {
525 [global::Cpp2ILInjected.Token(Token = "0x600310F")]
526 [global::Cpp2ILInjected.Address(RVA = "0x1303368", Offset = "0x1303368", Length = "0x8")]
527 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
528 get
529 {
530 throw null;
531 }
532 }
533
534 [global::Cpp2ILInjected.Token(Token = "0x1700061D")]
536 {
537 [global::Cpp2ILInjected.Token(Token = "0x6003110")]
538 [global::Cpp2ILInjected.Address(RVA = "0x1303370", Offset = "0x1303370", Length = "0x8")]
539 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
540 get
541 {
542 throw null;
543 }
544 }
545
546 [global::Cpp2ILInjected.Token(Token = "0x1700061E")]
548 {
549 [global::Cpp2ILInjected.Token(Token = "0x6003111")]
550 [global::Cpp2ILInjected.Address(RVA = "0x1302CD8", Offset = "0x1302CD8", Length = "0x7C")]
551 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPC), Member = "ShouldFaceTarget", MemberParameters = new object[]
552 {
555 }, ReturnType = typeof(bool))]
556 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils.TargetSearchResults), Member = "get_NearestTargetHitbox", ReturnType = typeof(Rectangle))]
557 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(NPCUtils), Member = "TargetClosestBetsy", MemberParameters = new object[]
558 {
559 typeof(NPC),
560 typeof(bool),
562 }, ReturnType = typeof(void))]
563 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 4)]
564 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
565 get
566 {
567 throw null;
568 }
569 }
570
571 [global::Cpp2ILInjected.Token(Token = "0x1700061F")]
572 public bool FoundTank
573 {
574 [global::Cpp2ILInjected.Token(Token = "0x6003112")]
575 [global::Cpp2ILInjected.Address(RVA = "0x1302CC8", Offset = "0x1302CC8", Length = "0x10")]
576 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
577 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
578 get
579 {
580 throw null;
581 }
582 }
583
584 [global::Cpp2ILInjected.Token(Token = "0x17000620")]
586 {
587 [global::Cpp2ILInjected.Token(Token = "0x6003113")]
588 [global::Cpp2ILInjected.Address(RVA = "0x1303378", Offset = "0x1303378", Length = "0x8")]
589 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
590 get
591 {
592 throw null;
593 }
594 }
595
596 [global::Cpp2ILInjected.Token(Token = "0x17000621")]
598 {
599 [global::Cpp2ILInjected.Token(Token = "0x6003114")]
600 [global::Cpp2ILInjected.Address(RVA = "0x1303380", Offset = "0x1303380", Length = "0x8")]
601 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
602 get
603 {
604 throw null;
605 }
606 }
607
608 [global::Cpp2ILInjected.Token(Token = "0x17000622")]
610 {
611 [global::Cpp2ILInjected.Token(Token = "0x6003115")]
612 [global::Cpp2ILInjected.Address(RVA = "0x1303388", Offset = "0x1303388", Length = "0x8")]
613 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
614 get
615 {
616 throw null;
617 }
618 }
619
620 [global::Cpp2ILInjected.Token(Token = "0x17000623")]
622 {
623 [global::Cpp2ILInjected.Token(Token = "0x6003116")]
624 [global::Cpp2ILInjected.Address(RVA = "0x1303390", Offset = "0x1303390", Length = "0x8")]
625 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
626 get
627 {
628 throw null;
629 }
630 }
631
632 [global::Cpp2ILInjected.Token(Token = "0x6003117")]
633 [global::Cpp2ILInjected.Address(RVA = "0x1302870", Offset = "0x1302870", Length = "0x50")]
634 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
635 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
640
641 [global::Cpp2ILInjected.Token(Token = "0x4003AE3")]
642 [global::Cpp2ILInjected.FieldOffset(Offset = "0x0")]
644
645 [global::Cpp2ILInjected.Token(Token = "0x4003AE4")]
646 [global::Cpp2ILInjected.FieldOffset(Offset = "0x4")]
647 private int _nearestNPCIndex;
648
649 [global::Cpp2ILInjected.Token(Token = "0x4003AE5")]
650 [global::Cpp2ILInjected.FieldOffset(Offset = "0x8")]
651 private float _nearestNPCDistance;
652
653 [global::Cpp2ILInjected.Token(Token = "0x4003AE6")]
654 [global::Cpp2ILInjected.FieldOffset(Offset = "0xC")]
655 private int _nearestTankIndex;
656
657 [global::Cpp2ILInjected.Token(Token = "0x4003AE7")]
658 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
659 private float _nearestTankDistance;
660
661 [global::Cpp2ILInjected.Token(Token = "0x4003AE8")]
662 [global::Cpp2ILInjected.FieldOffset(Offset = "0x14")]
664
665 [global::Cpp2ILInjected.Token(Token = "0x4003AE9")]
666 [global::Cpp2ILInjected.FieldOffset(Offset = "0x18")]
668 }
669
670 [Flags]
671 [global::Cpp2ILInjected.Token(Token = "0x2000505")]
673 {
674 [global::Cpp2ILInjected.Token(Token = "0x4003AEB")]
675 None = 0,
676 [global::Cpp2ILInjected.Token(Token = "0x4003AEC")]
677 NPCs = 1,
678 [global::Cpp2ILInjected.Token(Token = "0x4003AED")]
679 Players = 2,
680 [global::Cpp2ILInjected.Token(Token = "0x4003AEE")]
681 All = 3
682 }
683 }
684}
class f__AnonymousType0<< Count > j__TPar
static NPCUtils.SearchFilter< Player > OnlyPlayersInCertainDistance(Vector2 position, float maxDistance)
Definition NPCUtils.cs:271
static NPCUtils.SearchFilter< Player > DownwindFromNPC(NPC npc, float maxDistanceX)
Definition NPCUtils.cs:300
const int NPCSearchFilter_OnlyCrystal
Definition NPCUtils.cs:235
static NPCUtils.TargetSearchResults SearchForTarget(Vector2 position, NPCUtils.TargetSearchFlag flags=NPCUtils.TargetSearchFlag.All, float maxPlayerDistance=-1f, int npcFilter=0)
Definition NPCUtils.cs:24
static NPCUtils.TargetSearchResults SearchForTarget(NPC searcher, Vector2 position, NPCUtils.TargetSearchFlag flags=NPCUtils.TargetSearchFlag.All, float maxPlayerDistance=-1f, int npcFilter=0)
Definition NPCUtils.cs:116
const int NPCSearchFilter_NonBeeNPCs
Definition NPCUtils.cs:238
static void TargetClosestBetsy(NPC searcher, bool faceTarget=true, Vector2? checkPosition=null)
Definition NPCUtils.cs:229
static void TargetClosestCommon(NPC searcher, bool faceTarget=true, Vector2? checkPosition=null)
Definition NPCUtils.cs:201
static void TargetClosestOldOnesInvasion(NPC searcher, bool faceTarget=true, Vector2? checkPosition=null)
Definition NPCUtils.cs:143
delegate void NPCTargetingMethod(NPC searcher, bool faceTarget, Vector2? checkPosition)
static void TargetClosestDownwindFromNPC(NPC searcher, float distanceMaxX, bool faceTarget=true, Vector2? checkPosition=null)
Definition NPCUtils.cs:191
delegate bool SearchFilter< T >(T entity)
static void TargetClosestNonBees(NPC searcher, bool faceTarget=true, Vector2? checkPosition=null)
Definition NPCUtils.cs:167
const int NPCSearchFilter_DownWind
Definition NPCUtils.cs:241
Int32Enum
Definition Int32Enum.cs:8
TargetSearchResults(NPC searcher, int nearestNPCIndex, float nearestNPCDistance, int nearestTankIndex, float nearestTankDistance, float adjustedTankDistance, NPCUtils.TargetType tankType)
Definition NPCUtils.cs:636