34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
|
using Axibug;
|
|||
|
using Axibug.Event;
|
|||
|
|
|||
|
namespace Game
|
|||
|
{
|
|||
|
public class MainPlayerOnceAttackEventArgs : LogicEventArgs
|
|||
|
{
|
|||
|
public static readonly int EventId = typeof(MainPlayerOnceAttackEventArgs).GetHashCode();
|
|||
|
public long RoleID = 0;
|
|||
|
public E_NODE_TYPE NodeType = E_NODE_TYPE.N_FREE;
|
|||
|
public E_ONCEATTACK_STEP Step = E_ONCEATTACK_STEP.None;
|
|||
|
|
|||
|
/// <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 MainPlayerOnceAttackEventArgs Create(long roleID, E_NODE_TYPE nodetype, E_ONCEATTACK_STEP step)
|
|||
|
{
|
|||
|
MainPlayerOnceAttackEventArgs s = ReferencePool.Acquire<MainPlayerOnceAttackEventArgs>();
|
|||
|
s.Step = step;
|
|||
|
s.NodeType = nodetype;
|
|||
|
s.RoleID = roleID;
|
|||
|
return s;
|
|||
|
}
|
|||
|
|
|||
|
public override void Clear()
|
|||
|
{
|
|||
|
RoleID = 0;
|
|||
|
NodeType = E_NODE_TYPE.N_FREE;
|
|||
|
Step = E_ONCEATTACK_STEP.None;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|