2024-09-22 15:13:59 +00:00
|
|
|
namespace ColdMint.scripts.inventory;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <para>IItemDisplay</para>
|
|
|
|
/// <para>物品显示器</para>
|
|
|
|
/// </summary>
|
|
|
|
public interface IItemDisplay
|
|
|
|
{
|
2024-09-25 15:01:52 +00:00
|
|
|
|
2024-09-22 15:13:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// <para>Call this method to refresh the display when the item's information changes</para>
|
|
|
|
/// <para>物品的信息发生变更时,调用此方法刷新显示器</para>
|
|
|
|
/// </summary>
|
|
|
|
/// <remarks>
|
|
|
|
///<param name="item">
|
|
|
|
///<para>New data for items after changes</para>
|
|
|
|
///<para>发生改变后的物品新数据</para>
|
|
|
|
/// </param>
|
|
|
|
/// </remarks>
|
|
|
|
void Update(IItem? item);
|
|
|
|
|
2024-09-25 15:01:52 +00:00
|
|
|
/// <summary>
|
|
|
|
/// <para>Gets the item that is being displayed</para>
|
|
|
|
/// <para>获取正在显示的物品</para>
|
|
|
|
/// </summary>
|
|
|
|
IItem? Item { get; }
|
|
|
|
|
2024-09-22 15:13:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// <para>Show item Display</para>
|
|
|
|
/// <para>显示物品显示器</para>
|
|
|
|
/// </summary>
|
|
|
|
void ShowSelf();
|
2024-09-25 15:01:52 +00:00
|
|
|
|
2024-09-22 15:13:59 +00:00
|
|
|
/// <summary>
|
|
|
|
/// <para>Hide item Display</para>
|
|
|
|
/// <para>隐藏物品显示器</para>
|
|
|
|
/// </summary>
|
|
|
|
void HideSelf();
|
|
|
|
|
|
|
|
}
|