Terraria.ModLoader.PlayerHooks.CanBeHitByNPC C# (CSharp) 메소드

CanBeHitByNPC() 공개 정적인 메소드

public static CanBeHitByNPC ( Player player, NPC npc, int &cooldownSlot ) : bool
player Player
npc NPC
cooldownSlot int
리턴 bool
        public static bool CanBeHitByNPC(Player player, NPC npc, ref int cooldownSlot)
        {
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                if (!modPlayer.CanBeHitByNPC(npc, ref cooldownSlot))
                {
                    return false;
                }
            }
            return true;
        }