mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 21:17:09 +01:00
a
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user