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

            return(new Inventory(deepCopyItemList, deepCopyItemList.Capacity - deepCopyItemList.Count, _gold));
        }