geometry-tower-defense/Assets/GameMain/Scripts/Event/RepoForm/RepoParticipantRemoveReques...

28 lines
782 B
C#

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