AkiraPixelWind/Assets/Scripts/Main/Event/BattleEvent/AttackHitEventArgs.cs

40 lines
1.2 KiB
C#
Raw Normal View History

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>
/// <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, 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;
}
}
}