Example #1
0
        /// <summary>
        ///     Build an array of the <see cref="SpecialShopListing" />s of the current shop.
        /// </summary>
        /// <returns>An array of the <see cref="SpecialShopListing" />s of the current shop.</returns>
        private SpecialShopListing[] BuildShopItems()
        {
            const int Count = 60;

            var items = new List <SpecialShopListing>();

            for (var i = 0; i < Count; ++i)
            {
                var item = new SpecialShopListing(this, i);
                if (item.Rewards.Any())
                {
                    items.Add(item);
                }
            }

            return(items.ToArray());
        }
        /// <summary>
        ///     Build an array of the <see cref="SpecialShopListing" />s of the current shop.
        /// </summary>
        /// <returns>An array of the <see cref="SpecialShopListing" />s of the current shop.</returns>
        private SpecialShopListing[] BuildShopItems()
        {
            const int Count = 60;

            var items = new List<SpecialShopListing>();
            for (var i = 0; i < Count; ++i) {
                var item = new SpecialShopListing(this, i);
                if (item.Rewards.Any())
                    items.Add(item);
            }

            return items.ToArray();
        }