2024-04-29 15:25:03 +00:00
|
|
|
|
using System;
|
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.inventory;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Common goods</para>
|
|
|
|
|
/// <para>普通的物品</para>
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class CommonItem : IItem
|
|
|
|
|
{
|
2024-05-08 10:22:04 +00:00
|
|
|
|
public string? Id { get; set; }
|
2024-04-29 15:25:03 +00:00
|
|
|
|
public int Quantity { get; set; }
|
|
|
|
|
public int MaxStackQuantity { get; set; }
|
2024-05-08 10:22:04 +00:00
|
|
|
|
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; }
|
2024-04-29 15:25:03 +00:00
|
|
|
|
}
|