TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ OnKill()

static void Terraria.ModLoader.ProjectileLoader.OnKill ( Projectile projectile,
int timeLeft )
inlinestatic

Definition at line 479 of file ProjectileLoader.cs.

480 {
481 projectile.ModProjectile?.OnKill(timeLeft);
482 Kill_Obsolete(projectile, timeLeft);
483 EntityGlobalsEnumerator<GlobalProjectile> enumerator = HookOnKill.Enumerate(projectile).GetEnumerator();
484 while (enumerator.MoveNext())
485 {
486 enumerator.Current.OnKill(projectile, timeLeft);
487 }
488 }
static void Kill_Obsolete(Projectile projectile, int timeLeft)
static GlobalHookList< GlobalProjectile > HookOnKill

References Terraria.ModLoader.ProjectileLoader.HookOnKill, Terraria.ModLoader.ProjectileLoader.Kill_Obsolete(), and Terraria.Projectile.ModProjectile.

Referenced by Terraria.Projectile.Kill().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: