- 添加 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,26 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public class CombineSlotClickedEventArgs : GameEventArgs
{
public static int EventId => typeof(CombineSlotClickedEventArgs).GetHashCode();
public override int Id => EventId;
public int SlotIndex { get; private set; } = -1;
public static CombineSlotClickedEventArgs Create(int slotIndex)
{
CombineSlotClickedEventArgs args = ReferencePool.Acquire<CombineSlotClickedEventArgs>();
args.SlotIndex = slotIndex;
return args;
}
public override void Clear()
{
SlotIndex = -1;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ba4b42e0bcec06040b873823cf1be8d8
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 class RepoItemSelectedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoItemSelectedEventArgs).GetHashCode();
public override int Id => EventId;
public long ItemId { get; private set; }
public static RepoItemSelectedEventArgs Create(long itemId)
{
RepoItemSelectedEventArgs args = ReferencePool.Acquire<RepoItemSelectedEventArgs>();
args.ItemId = itemId;
return args;
}
public override void Clear()
{
ItemId = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c5c0e535b0c3a4c4fa2a9e12f57c77ae
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: