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

◆ OnHitByProjectile()

static void Terraria.ModLoader.NPCLoader.OnHitByProjectile ( NPC npc,
Projectile projectile,
in NPC::HitInfo hit,
int damageDone )
inlinestatic

Definition at line 1098 of file NPCLoader.cs.

1099 {
1100 npc.ModNPC?.OnHitByProjectile(projectile, hit, damageDone);
1102 while (enumerator.MoveNext())
1103 {
1104 enumerator.Current.OnHitByProjectile(npc, projectile, hit, damageDone);
1105 }
1106 }
static GlobalHookList< GlobalNPC > HookOnHitByProjectile
Definition NPCLoader.cs:188

References Terraria.ModLoader.NPCLoader.HookOnHitByProjectile, and Terraria.NPC.ModNPC.

Referenced by Terraria.ModLoader.CombinedHooks.OnHitNPCWithProj().

+ Here is the caller graph for this function: