AkiraPixelWind/Assets/Scripts/Main/Event/MainPlayerInput/MainPlayerOnceAttackEventArgs.cs

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