2024-06-19 16:02:32 +00:00
|
|
|
|
using ColdMint.scripts.inventory;
|
|
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.map.events;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// <para>Selected item slot changes event</para>
|
|
|
|
|
/// <para>选中的物品槽改变事件</para>
|
|
|
|
|
/// </summary>
|
2024-09-22 08:51:42 +00:00
|
|
|
|
public class SelectedItemChangeEvent
|
2024-06-19 16:02:32 +00:00
|
|
|
|
{
|
2024-09-22 15:13:59 +00:00
|
|
|
|
public int NewIndex { get; set; }
|
|
|
|
|
|
|
|
|
|
public int OldIndex { get; set; }
|
|
|
|
|
|
2024-06-19 16:02:32 +00:00
|
|
|
|
/// <summary>
|
2024-09-22 08:51:42 +00:00
|
|
|
|
/// <para>Newly selected item</para>
|
|
|
|
|
/// <para>新选中的物品</para>
|
2024-06-19 16:02:32 +00:00
|
|
|
|
/// </summary>
|
2024-09-22 08:51:42 +00:00
|
|
|
|
public IItem? NewItem { get; set; }
|
2024-06-19 16:02:32 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-09-22 08:51:42 +00:00
|
|
|
|
/// <para>Lost the selected item</para>
|
|
|
|
|
/// <para>失去选中的物品</para>
|
2024-06-19 16:02:32 +00:00
|
|
|
|
/// </summary>
|
2024-09-22 08:51:42 +00:00
|
|
|
|
public IItem? OldItem { get; set; }
|
2024-06-19 16:02:32 +00:00
|
|
|
|
}
|