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; /// /// 获取加载数据表成功事件编号。 /// 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(); 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; } } }