Terraria.ModLoader.ItemLoader.DrawLegs C# (CSharp) Method

DrawLegs() public static method

public static DrawLegs ( Player player ) : bool
player Terraria.Player
return bool
        public static bool DrawLegs(Player player)
        {
            EquipTexture texture = EquipLoader.GetEquipTexture(EquipType.Legs, player.legs);
            if (texture != null && !texture.DrawLegs())
            {
                return false;
            }
            texture = EquipLoader.GetEquipTexture(EquipType.Shoes, player.shoe);
            if (texture != null && !texture.DrawLegs())
            {
                return false;
            }
            foreach (var hook in HookDrawLegs)
            {
                if (!hook(player.legs, player.shoe))
                {
                    return false;
                }
            }
            return true;
        }