Traveller/scripts/inventory/CommonItem.cs
Cold-Mint e204aae56a
Add hover hints to items.
为物品添加悬浮提示。
2024-04-29 23:25:03 +08:00

20 lines
541 B
C#

using System;
using Godot;
namespace ColdMint.scripts.inventory;
/// <summary>
/// <para>Common goods</para>
/// <para>普通的物品</para>
/// </summary>
public class CommonItem : IItem
{
public string Id { get; set; }
public int Quantity { get; set; }
public int MaxStackQuantity { get; set; }
public Texture2D Icon { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public Action<IItem> OnUse { get; set; }
public Func<IItem, Node> OnInstantiation { get; set; }
}