using Godot;
namespace ColdMint.scripts.item;
public interface IItem
{
///
/// ID of current item
/// 当前项目的ID
///
string Id { get; }
///
/// Icon of current item
/// 当前项目的图标
///
Texture2D Icon { get; }
///
/// Display name of current item
/// 显示当前Item的名称
///
string Name { get; }
///
/// Description of current item, which may show in inventory
/// 当前项目的描述
///
string? Description { get; }
///
/// Quantity
/// 当前的数量
///
int Quantity { get; set; }
///
/// MaxItemQuantity
/// 最大物品数量
///
int MaxQuantity { get; }
///
/// Execute when current item is used
e.g. when player clicks left mouse button with current item in hand
/// 当前项被使用时执行
e.g. 当玩家用鼠标左键点击当前物品时
///
/// Owner of current item, if any
/// Target position, such as the position of the cursor when used by the player
void Use(Node2D? owner, Vector2 targetGlobalPosition);
}