27 lines
694 B
C#
27 lines
694 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace GeometryTD.CustomEvent
|
|
{
|
|
public class CombineSlotClickedEventArgs : GameEventArgs
|
|
{
|
|
public static int EventId => typeof(CombineSlotClickedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public int SlotIndex { get; private set; } = -1;
|
|
|
|
public static CombineSlotClickedEventArgs Create(int slotIndex)
|
|
{
|
|
CombineSlotClickedEventArgs args = ReferencePool.Acquire<CombineSlotClickedEventArgs>();
|
|
args.SlotIndex = slotIndex;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
SlotIndex = -1;
|
|
}
|
|
}
|
|
}
|