27 lines
664 B
C#
27 lines
664 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace GeometryTD.CustomEvent
|
|
{
|
|
public class RepoItemSelectedEventArgs : GameEventArgs
|
|
{
|
|
public static int EventId => typeof(RepoItemSelectedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public long ItemId { get; private set; }
|
|
|
|
public static RepoItemSelectedEventArgs Create(long itemId)
|
|
{
|
|
RepoItemSelectedEventArgs args = ReferencePool.Acquire<RepoItemSelectedEventArgs>();
|
|
args.ItemId = itemId;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
ItemId = 0;
|
|
}
|
|
}
|
|
}
|