This commit is contained in:
Janis
2023-03-01 22:28:06 +01:00
parent 36337c8a72
commit ae0b21f9e9
19 changed files with 600 additions and 455 deletions

View File

@@ -5,12 +5,12 @@ using System.Collections.Generic;
// represents an item in the inventory and its count
[System.Serializable]
public class InventoryItem
public class InventoryItem<TItem> where TItem : Item
{
public Item item;
public TItem item;
public int count;
public InventoryItem(Item item, int count)
public InventoryItem(TItem item, int count)
{
this.item = item;
this.count = count;