27 lines
715 B
C#
27 lines
715 B
C#
using GameFramework;
|
|
using GameFramework.Event;
|
|
|
|
namespace GeometryTD.CustomEvent
|
|
{
|
|
public sealed class ShopPurchaseRequestedEventArgs : GameEventArgs
|
|
{
|
|
public static int EventId => typeof(ShopPurchaseRequestedEventArgs).GetHashCode();
|
|
|
|
public override int Id => EventId;
|
|
|
|
public int GoodsIndex { get; private set; }
|
|
|
|
public static ShopPurchaseRequestedEventArgs Create(int goodsIndex)
|
|
{
|
|
ShopPurchaseRequestedEventArgs args = ReferencePool.Acquire<ShopPurchaseRequestedEventArgs>();
|
|
args.GoodsIndex = goodsIndex;
|
|
return args;
|
|
}
|
|
|
|
public override void Clear()
|
|
{
|
|
GoodsIndex = -1;
|
|
}
|
|
}
|
|
}
|