- 添加 MainForm

- 添加 ResolutionAdapterComponent 进行屏幕分辨率适配
This commit is contained in:
SepComet
2026-02-28 18:39:20 +08:00
parent 61a096cbc6
commit dfd37778b6
39 changed files with 1365 additions and 20 deletions
@@ -0,0 +1,27 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public class NodeCompleteEventArgs : GameEventArgs
{
public static int EventId = typeof(NodeCompleteEventArgs).GetHashCode();
public override int Id => EventId;
public NodeCompleteEventArgs()
{
}
public static NodeCompleteEventArgs Create()
{
var args = ReferencePool.Acquire<NodeCompleteEventArgs>();
return args;
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 3c8d1335edfb4fcd8b08279d3c254eff
timeCreated: 1772269787
@@ -0,0 +1,27 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public class NodeEnterEventArgs : GameEventArgs
{
public static int EventId = typeof(NodeEnterEventArgs).GetHashCode();
public override int Id => EventId;
public NodeEnterEventArgs()
{
}
public static NodeEnterEventArgs Create()
{
var args = ReferencePool.Acquire<NodeEnterEventArgs>();
return args;
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: 8a42a26567434ac194a89aa5c9ae6c5d
timeCreated: 1772270138
@@ -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: