CryEngine.CharacterCustomization.CharacterAttachmentSlot.GetBrand C# (CSharp) Method

GetBrand() public method

public GetBrand ( string name ) : CharacterAttachmentBrand
name string
return CharacterAttachmentBrand
        public CharacterAttachmentBrand GetBrand(string name)
        {
            if (Brands != null)
            {
                foreach (var brand in Brands)
                {
                    if (brand.Name == name)
                        return brand;
                }
            }

            return null;
        }