AkiraPixelWind/Assets/Scripts/Main/Event/MainPlayerInput/MainPlayerJumpStateEventArgs.cs
2023-01-30 18:16:49 +08:00

31 lines
863 B
C#

using Axibug;
using Axibug.Event;
namespace Game
{
public class MainPlayerJumpStateEventArgs : LogicEventArgs
{
public static readonly int EventId = typeof(MainPlayerJumpStateEventArgs).GetHashCode();
public long RoleID = 0;
public E_JUMP_STEP Step = E_JUMP_STEP.None;
/// <summary>
/// 获取加载数据表成功事件编号。
/// </summary>
public override int Id { get { return EventId; } }
public static MainPlayerJumpStateEventArgs Create(long roleID,E_JUMP_STEP step)
{
MainPlayerJumpStateEventArgs s = ReferencePool.Acquire<MainPlayerJumpStateEventArgs>();
s.Step = step;
s.RoleID = roleID;
return s;
}
public override void Clear()
{
RoleID = 0;
Step = E_JUMP_STEP.None;
}
}
}