Traveller/scripts/map/events/SelectedItemChangeEvent.cs
Cold-Mint 234241b74a
Bind the item container to the item container display.
将物品容器和物品容器显示器绑定。
2024-09-22 23:13:59 +08:00

26 lines
658 B
C#

using ColdMint.scripts.inventory;
namespace ColdMint.scripts.map.events;
/// <summary>
/// <para>Selected item slot changes event</para>
/// <para>选中的物品槽改变事件</para>
/// </summary>
public class SelectedItemChangeEvent
{
public int NewIndex { get; set; }
public int OldIndex { get; set; }
/// <summary>
/// <para>Newly selected item</para>
/// <para>新选中的物品</para>
/// </summary>
public IItem? NewItem { get; set; }
/// <summary>
/// <para>Lost the selected item</para>
/// <para>失去选中的物品</para>
/// </summary>
public IItem? OldItem { get; set; }
}