Example #1
0
        public List <ItemBase> GetItemsByType(int itemIndex, int itemId)
        {
            List <ItemBase> grouppedItem = new List <ItemBase>();
            ItemBase        item         = _items[itemIndex];

            item.AddListItem(ref grouppedItem, false);
            for (int index = itemIndex + 1; index < _items.Count; index++)
            {
                if (_items[itemIndex].mnItemID == itemId)
                {
                    _items[index].AddListItem(ref grouppedItem, false);
                    _items.RemoveAt(itemIndex);
                }
            }

            return(grouppedItem);
        }
Example #2
0
 public void AddItem(ref ItemBase item)
 {
     item = item.AddListItem(ref _items, false, _maxCapacity);
     RequestImmediateNetworkUpdate();
 }