33 lines
764 B
C#
33 lines
764 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace GeometryTD.CustomEvent
|
|
{
|
|
public class CombatCoinChangedEventArgs : GameEventArgs
|
|
{
|
|
public static int EventId => typeof(CombatCoinChangedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public int CurrentCoin { get; private set; }
|
|
|
|
|
|
public CombatCoinChangedEventArgs()
|
|
{
|
|
CurrentCoin = 0;
|
|
}
|
|
|
|
public static CombatCoinChangedEventArgs Create(int currentCoin)
|
|
{
|
|
var args = ReferencePool.Acquire<CombatCoinChangedEventArgs>();
|
|
args.CurrentCoin = currentCoin;
|
|
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
CurrentCoin = 0;
|
|
}
|
|
}
|
|
} |