using Godot; namespace ColdMint.scripts.item; public interface IItem { /// /// ID of current item /// string Id { get; } /// /// Icon of current item /// Texture2D Icon { get; } /// /// Display name of current item /// string Name { get; } /// /// Description of current item, which may show in inventory /// string? Description { get; } /// /// Execute when current item is used
e.g. when player clicks left mouse button with current item in hand
///
/// 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); /// /// Execute when current item be removed from game. /// void Destroy(); }