40 lines
1.2 KiB
C#
40 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 int Attacker_RoleID = 0;
|
|
public E_NODE_TYPE UnderAtk_Type = E_NODE_TYPE.N_FREE;
|
|
public int UnderAtk_RoleID = 0;
|
|
|
|
|
|
public int AttackTypeId;//TODO
|
|
|
|
/// <summary>
|
|
/// 获取加载数据表成功事件编号。
|
|
/// </summary>
|
|
public override int Id { get { return EventId; } }
|
|
|
|
public static AttackHitEventArgs Create(E_NODE_TYPE attacker_Type, int attacker_RoleID, E_NODE_TYPE underAtk_Type, int 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;
|
|
}
|
|
}
|
|
} |