using System;
using Godot;
namespace ColdMint.scripts.inventory;
public interface IItem
{
///
/// Item and ID
/// 物品还有ID
///
string Id { get; set; }
///
/// Represents the quantity of this item
/// 表示此物品的数量
///
int Quantity { get; set; }
///
/// How many can this item stack up to
/// 这个物品最多叠加到多少个
///
int MaxStackQuantity { get; set; }
///
/// Items can be set with Icon
/// 物品可以设置图标
///
Texture2D Icon { get; set; }
///
/// Item has a name
/// 物品有名称
///
string Name { get; set; }
///
/// When using items
/// 当使用物品时
///
Action OnUse { get; set; }
///
/// When removing items from the backpack, instantiate them
/// 当从背包内取出,实例化物品时
///
Func OnInstantiation { get; set; }
}