示例#1
0
        private IEnumerable <string> GetGear(string gearType)
        {
            switch (gearType)
            {
            case ItemTypeConstants.Weapon: return(WeaponConstants.GetAllSpecific());

            case ItemTypeConstants.Armor: return(ArmorConstants.GetAllSpecificArmors());

            case AttributeConstants.Shield: return(ArmorConstants.GetAllSpecificShields());

            default: throw new ArgumentException($"{gearType} is not a valid specific gear type");
            }
        }