using Godot; namespace ColdMint.scripts.item; //Todo: Merge this with IItem (and, then change this ugly name public interface IItem_New { /// /// 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); }