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

34 lines
852 B
C#
Raw Normal View History

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>
/// <20><>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݱ<EFBFBD><DDB1>ɹ<EFBFBD><C9B9>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>š<EFBFBD>
/// </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;
}
}
}