37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
|
using Axibug;
|
|||
|
using Axibug.Event;
|
|||
|
|
|||
|
namespace Game
|
|||
|
{
|
|||
|
public class AttackHitEventArgs : LogicEventArgs
|
|||
|
{
|
|||
|
public static readonly int EventId = typeof(AttackHitEventArgs).GetHashCode();
|
|||
|
public E_NODE_TYPE Attacker_Type = E_NODE_TYPE.N_FREE;
|
|||
|
public long Attacker_RoleID = 0;
|
|||
|
public E_NODE_TYPE UnderAtk_Type = E_NODE_TYPE.N_FREE;
|
|||
|
public long UnderAtk_RoleID = 0;
|
|||
|
|
|||
|
/// <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 AttackHitEventArgs Create(E_NODE_TYPE attacker_Type, long attacker_RoleID, E_NODE_TYPE underAtk_Type, long underAtk_RoleID)
|
|||
|
{
|
|||
|
AttackHitEventArgs s = ReferencePool.Acquire<AttackHitEventArgs>();
|
|||
|
s.Attacker_Type = attacker_Type;
|
|||
|
s.Attacker_RoleID = attacker_RoleID;
|
|||
|
s.UnderAtk_Type = underAtk_Type;
|
|||
|
s.UnderAtk_RoleID = underAtk_RoleID;
|
|||
|
return s;
|
|||
|
}
|
|||
|
|
|||
|
public override void Clear()
|
|||
|
{
|
|||
|
Attacker_Type = E_NODE_TYPE.N_FREE;
|
|||
|
Attacker_RoleID = 0;
|
|||
|
UnderAtk_Type = E_NODE_TYPE.N_FREE;
|
|||
|
UnderAtk_RoleID = 0;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|