Exemplo n.º 1
0
        static bool IsFilteredShopListing(Saint.IShopListing sShopListing, DatabaseBuilder builder)
        {
            if (sShopListing.Costs.Any(li => builder.Db.IgnoredCurrencyItemIds.Contains(li.Item.Key)))
            {
                return(true);
            }

            if (sShopListing.Rewards.Any(li => builder.Db.IgnoredCurrencyItemIds.Contains(li.Item.Key)))
            {
                return(true);
            }

            return(false);
        }
Exemplo n.º 2
0
 public GtShopListing(Saint.IShopListing sShopListing)
 {
     Costs   = sShopListing.Costs.Select(s => new GtShopListingItem(s)).ToList();
     Rewards = sShopListing.Rewards.Select(s => new GtShopListingItem(s)).ToList();
 }