添加节点测试 UI 和商店节点(占位)

- TestMenuForm:节点测试 UI
- ShopNodeComponent:商店节点组件,只有 OnInit() 和 StartShop() 两个空方法
This commit is contained in:
SepComet
2026-02-28 16:28:37 +08:00
parent bee7ae381e
commit 9504c1ca18
22 changed files with 1186 additions and 7 deletions
@@ -0,0 +1,33 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public enum TestMenuNodeType : byte
{
Combat = 1,
Event = 2,
Shop = 3
}
public class TestMenuNodeClickEventArgs : GameEventArgs
{
public static int EventId => typeof(TestMenuNodeClickEventArgs).GetHashCode();
public override int Id => EventId;
public TestMenuNodeType NodeType { get; private set; }
public static TestMenuNodeClickEventArgs Create(TestMenuNodeType nodeType)
{
TestMenuNodeClickEventArgs args = ReferencePool.Acquire<TestMenuNodeClickEventArgs>();
args.NodeType = nodeType;
return args;
}
public override void Clear()
{
NodeType = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 411999db6fd14f9485be9606a83c97ac
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: