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

DrawHair() public static method

public static DrawHair ( Player player, bool &drawHair, bool &drawAltHair ) : void
player Terraria.Player
drawHair bool
drawAltHair bool
return void
        public static void DrawHair(Player player, ref bool drawHair, ref bool drawAltHair)
        {
            EquipTexture texture = EquipLoader.GetEquipTexture(EquipType.Head, player.head);
            texture?.DrawHair(ref drawHair, ref drawAltHair);

            foreach (var hook in HookDrawHair)
            {
                hook(player.body, ref drawHair, ref drawAltHair);
            }
        }