/// <summary> /// Sets the <see cref="items"/> to the given <see cref="ItemsInInventory"/> /// </summary> /// <param name="items">Items to set this inventory to</param> ///<remarks> /// Used during deserialization to restor the inventory ///</remarks> public void SetAllItems(ItemsInInventory items) { this.items = items; }
/// <summary> /// Sets the inventory soze to the number of slots in the invnetory /// </summary> /// <param name="inventorySize"></param> public void SetInventorySize(int inventorySize) { items = new ItemsInInventory(slots.Length); }