//------------------------------------------------------------------------------------------------------------------------ // GetItems() //------------------------------------------------------------------------------------------------------------------------ //returns a deepcopied list with all current items in the shop. public List <Item> GetItems() { return(HUtils.DeepCopyList(_items)); }
public virtual IPrototype Clone() { return(new Item(name, iconName, Amount, HUtils.DeepCopyList(_components))); }
public override IPrototype Clone() { var deepCopyItemList = HUtils.DeepCopyList(_items); return(new Inventory(deepCopyItemList, deepCopyItemList.Capacity - deepCopyItemList.Count, _gold)); }