添加参战防御塔功能(UI)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1438388ea5334474da123eadd2a55fc8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user