コード例 #1
0
ファイル: GarlandShop.cs プロジェクト: zaiha/GarlandTools
        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);
        }
コード例 #2
0
ファイル: GarlandShop.cs プロジェクト: zaiha/GarlandTools
 public GtShopListing(Saint.IShopListing sShopListing)
 {
     Costs   = sShopListing.Costs.Select(s => new GtShopListingItem(s)).ToList();
     Rewards = sShopListing.Rewards.Select(s => new GtShopListingItem(s)).ToList();
 }