添加参战防御塔功能(UI)

This commit is contained in:
SepComet
2026-03-04 20:36:05 +08:00
parent 298345fa17
commit a62309e8c1
25 changed files with 1160 additions and 20 deletions
@@ -0,0 +1,27 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public sealed class RepoParticipantAssignRequestedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoParticipantAssignRequestedEventArgs).GetHashCode();
public override int Id => EventId;
public long TowerItemId { get; private set; }
public static RepoParticipantAssignRequestedEventArgs Create(long towerItemId)
{
RepoParticipantAssignRequestedEventArgs args =
ReferencePool.Acquire<RepoParticipantAssignRequestedEventArgs>();
args.TowerItemId = towerItemId;
return args;
}
public override void Clear()
{
TowerItemId = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e28c7dca1c4d6684f949e3ea257b5ad8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,27 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public sealed class RepoParticipantRemoveRequestedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoParticipantRemoveRequestedEventArgs).GetHashCode();
public override int Id => EventId;
public long TowerItemId { get; private set; }
public static RepoParticipantRemoveRequestedEventArgs Create(long towerItemId)
{
RepoParticipantRemoveRequestedEventArgs args =
ReferencePool.Acquire<RepoParticipantRemoveRequestedEventArgs>();
args.TowerItemId = towerItemId;
return args;
}
public override void Clear()
{
TowerItemId = 0;
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1438388ea5334474da123eadd2a55fc8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: