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; }
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()); }
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); }