vampire-like/Assets/GameMain/Scripts/Base/Event/UI/Menu/SelectRoleHoverEventArgs.cs

27 lines
642 B
C#

using GameFramework;
using GameFramework.Event;
namespace SepCore.Event
{
public class SelectRoleHoverEventArgs : GameEventArgs
{
public static readonly int EventId = typeof(SelectRoleHoverEventArgs).GetHashCode();
public override int Id => EventId;
public int RoleId { get; private set; } = -1;
public static SelectRoleHoverEventArgs Create(int roleId)
{
var args = ReferencePool.Acquire<SelectRoleHoverEventArgs>();
args.RoleId = roleId;
return args;
}
public override void Clear()
{
RoleId = -1;
}
}
}