public ItemStashData(ItemStash stash) { this.count = stash.GetNumItems(); this.capacity = stash.GetCapacity(); this.itemData = new ItemData[capacity]; for (int i = 0; i < capacity; i++) { Item item = stash.GetItem(i); if (item == null) { itemData[i] = null; } else { itemData[i] = new ItemData(item); } } }
internal void OrderItemStashList() { ItemStash = ItemStash.OrderBy(x => x.GetType().Name).ThenByDescending(y => y.Level).ToList(); }
public void SetItem(Item item, ItemStash parent) { SetParentStash(parent); SetItem(item); }
public void SetParentStash(ItemStash parent) { parentStash = parent; }