AkiraPixelWind/Assets/Scripts/Main/Event/RoleEvent/RoleDeadEventArgs.cs

34 lines
852 B
C#

using Axibug;
using Axibug.Event;
namespace Game
{
public class RoleDeadEventArgs : LogicEventArgs
{
public static readonly int EventId = typeof(RoleDeadEventArgs).GetHashCode();
public E_NODE_TYPE Type = E_NODE_TYPE.N_FREE;
public int RoleID = 0;
public int AttackTypeId;//TODO
/// <summary>
/// 获取加载数据表成功事件编号。
/// </summary>
public override int Id { get { return EventId; } }
public static RoleDeadEventArgs Create(E_NODE_TYPE type, int roleID)
{
RoleDeadEventArgs s = ReferencePool.Acquire<RoleDeadEventArgs>();
s.Type = type;
s.RoleID = roleID;
return s;
}
public override void Clear()
{
Type = E_NODE_TYPE.N_FREE;
RoleID = 0;
}
}
}