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(); args.Cost = cost; return args; } public override void Clear() { Cost = 0; } } }