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

32 lines
833 B
C#
Raw Normal View History

2023-01-11 23:42:41 +08:00
using Axibug;
using Axibug.Event;
namespace Game
{
public class HPMPChangeEventArgs : LogicEventArgs
{
public static readonly int EventId = typeof(HPMPChangeEventArgs).GetHashCode();
public E_NODE_TYPE roleType = E_NODE_TYPE.N_FREE;
public int RoleID = 0;
/// <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 HPMPChangeEventArgs Create(E_NODE_TYPE type,int roleID)
{
HPMPChangeEventArgs s = ReferencePool.Acquire<HPMPChangeEventArgs>();
s.RoleID = roleID;
s.roleType = type;
return s;
}
public override void Clear()
{
roleType = E_NODE_TYPE.N_FREE;
RoleID = 0;
}
}
}