init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public sealed class ShopExitRequestedEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId => typeof(ShopExitRequestedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static ShopExitRequestedEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<ShopExitRequestedEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
using GameFramework;
|
||||
using GameFramework.Event;
|
||||
|
||||
namespace GeometryTD.CustomEvent
|
||||
{
|
||||
public sealed class ShopInventoryRequestedEventArgs : GameEventArgs
|
||||
{
|
||||
public static int EventId => typeof(ShopInventoryRequestedEventArgs).GetHashCode();
|
||||
|
||||
public override int Id => EventId;
|
||||
|
||||
public static ShopInventoryRequestedEventArgs Create()
|
||||
{
|
||||
return ReferencePool.Acquire<ShopInventoryRequestedEventArgs>();
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user