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

SetMatch() public static method

public static SetMatch ( int armorSlot, int type, bool male, int &equipSlot, bool &robes ) : void
armorSlot int
type int
male bool
equipSlot int
robes bool
return void
        public static void SetMatch(int armorSlot, int type, bool male, ref int equipSlot, ref bool robes)
        {
            EquipTexture texture = null;
            if (armorSlot == 1)
            {
                texture = EquipLoader.GetEquipTexture(EquipType.Body, type);
            }
            else if (armorSlot == 2)
            {
                texture = EquipLoader.GetEquipTexture(EquipType.Legs, type);
            }
            texture?.SetMatch(male, ref equipSlot, ref robes);

            foreach (var hook in HookSetMatch)
            {
                hook(armorSlot, type, male, ref equipSlot, ref robes);
            }
        }