35 lines
764 B
C#
35 lines
764 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace SepCore.Event
|
|
{
|
|
public class LevelUpRefreshEventArgs : GameEventArgs
|
|
{
|
|
public static readonly int EventId = typeof(LevelUpRefreshEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public int Cost { get; private set; }
|
|
|
|
public LevelUpRefreshEventArgs()
|
|
{
|
|
Cost = 0;
|
|
}
|
|
|
|
public static LevelUpRefreshEventArgs Create(int cost)
|
|
{
|
|
var args = ReferencePool.Acquire<LevelUpRefreshEventArgs>();
|
|
|
|
args.Cost = cost;
|
|
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
Cost = 0;
|
|
}
|
|
|
|
}
|
|
}
|