28 lines
782 B
C#
28 lines
782 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace GeometryTD.CustomEvent
|
|
{
|
|
public sealed class RepoParticipantAssignRequestedEventArgs : GameEventArgs
|
|
{
|
|
public static int EventId => typeof(RepoParticipantAssignRequestedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public long TowerItemId { get; private set; }
|
|
|
|
public static RepoParticipantAssignRequestedEventArgs Create(long towerItemId)
|
|
{
|
|
RepoParticipantAssignRequestedEventArgs args =
|
|
ReferencePool.Acquire<RepoParticipantAssignRequestedEventArgs>();
|
|
args.TowerItemId = towerItemId;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
TowerItemId = 0;
|
|
}
|
|
}
|
|
}
|