增加收获属性逻辑,优化掉落物表现效果
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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<ShopGoodsLockEventArgs>();
|
||||
args.GoodsIndex = index;
|
||||
return args;
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
GoodsIndex = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user