添加商店 UI

This commit is contained in:
2026-03-07 22:50:15 +08:00
parent 2b86582ff7
commit c04c049c6a
35 changed files with 3422 additions and 10 deletions
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 56d13fc3b109421e814cba0ebc2417c9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -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,11 @@
fileFormatVersion: 2
guid: 6cd59d773d1f4cc5845eaf0c41838fdd
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -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,11 @@
fileFormatVersion: 2
guid: 8f1480d3d78848dbb847fc5d3075d3a8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -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;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 57bf30adac09423ea7485c7b8df6ea77
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: