示例#1
0
        public bool Contains(ItemTypeType itemType)
        {
            if (Type == ItemCategoryType.All)
            {
                return(true);
            }

            return(ItemTypes.Any(element => element.Type == itemType));
        }
示例#2
0
        public ItemTypeAndRarityAlchemyIngredient(string name, string icon, ItemTypeType type, RarityType rarity, int count)
        {
            Name  = name;
            Icon  = icon;
            Count = count;

            this.type   = type;
            this.rarity = rarity;
        }