mirror of
				https://github.com/DerTyp7/harvestdale-unity.git
				synced 2025-10-31 13:37:08 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			367 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			367 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using UnityEngine;
 | |
| using System;
 | |
| using System.Collections;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| // represents an item in the inventory and its count
 | |
| [System.Serializable]
 | |
| public class InventoryItem<TItem> where TItem : Item
 | |
| {
 | |
|   public TItem item;
 | |
|   public int count;
 | |
| 
 | |
|   public InventoryItem(TItem item, int count)
 | |
|   {
 | |
|     this.item = item;
 | |
|     this.count = count;
 | |
|   }
 | |
| } | 
