using GameFramework; using GameFramework.Event; namespace SepCore.Event { public class ShopGoodsLockEventArgs : GameEventArgs { public static readonly int EventId = typeof(ShopGoodsLockEventArgs).GetHashCode(); public override int Id => EventId; public int GoodsIndex { get; private set; } public ShopGoodsLockEventArgs() { GoodsIndex = -1; } public static ShopGoodsLockEventArgs Create(int index) { var args = ReferencePool.Acquire(); args.GoodsIndex = index; return args; } public override void Clear() { GoodsIndex = -1; } } }