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(); args.GoodsIndex = goodsIndex; return args; } public override void Clear() { GoodsIndex = -1; } } }