private GatheringItem[] BuildGatheringItems()
        {
            const int Count = 8;

            var items = new GatheringItem[Count];
            for (var i = 0; i < Count; ++i) {
                var gi = As<GatheringItem>(i);
                if (gi.Key != 0 && gi.Item != null && gi.Item.Key != 0)
                    items[i] = gi;
            }
            return items;
        }
Beispiel #2
0
        private GatheringItem[] BuildItems()
        {
            const int Count = 100;

            List <GatheringItem> items = new List <GatheringItem>();

            for (int i = 0; i < Count; ++i)
            {
                GatheringItem itm = As <GatheringItem>(i);
                if (itm.Key != 0)
                {
                    items.Add(itm);
                }
            }
            return(items.ToArray());
        }
Beispiel #3
0
        private GatheringItem[] BuildGatheringItems()
        {
            const int Count = 8;

            var items = new GatheringItem[Count];

            for (var i = 0; i < Count; ++i)
            {
                var gi = As <GatheringItem>(i);
                if (gi.Key != 0 && gi.Item != null && gi.Item.Key != 0)
                {
                    items[i] = gi;
                }
            }
            return(items);
        }