public static List<ItemPricing> GetInRange(PriceRange range, DealsFilters filters) { return DataManager.PriceData.Prices.FindAll((p) => filters.MatchesPricing(p) && range.Contains(p.Pricing)); }
public static List<ItemPricing> FindPricingsInRange(PriceRange range, DealsFilters filters) { List<ItemPricing> results = new List<ItemPricing>(); VersatileIO.Info("Finding valid items in price range..."); foreach (ItemPricing p in DataManager.PriceData.Prices) // get ALL the datas! { if (!range.Contains(p.Pricing)) { continue; } if (!filters.MatchesPricing(p)) { continue; } results.Add(p); } return results; }