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

◆ CheckActive()

static bool Terraria.ModLoader.NPCLoader.CheckActive ( NPC npc)
inlinestatic

Definition at line 696 of file NPCLoader.cs.

697 {
698 if (npc.ModNPC != null && !npc.ModNPC.CheckActive())
699 {
700 return false;
701 }
702 EntityGlobalsEnumerator<GlobalNPC> enumerator = HookCheckActive.Enumerate(npc).GetEnumerator();
703 while (enumerator.MoveNext())
704 {
705 if (!enumerator.Current.CheckActive(npc))
706 {
707 return false;
708 }
709 }
710 return true;
711 }
static GlobalHookList< GlobalNPC > HookCheckActive
Definition NPCLoader.cs:140

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

Referenced by Terraria.NPC.CheckActive().

+ Here is the caller graph for this function: