为 RepoForm 添加出售功能,ShopNode 只承载玩家购买组件的逻辑

This commit is contained in:
2026-03-16 17:52:23 +08:00
parent dc2aa59d58
commit 2e54acbc85
33 changed files with 3198 additions and 91 deletions
@@ -0,0 +1,21 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public sealed class RepoSellCancelRequestedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoSellCancelRequestedEventArgs).GetHashCode();
public override int Id => EventId;
public static RepoSellCancelRequestedEventArgs Create()
{
return ReferencePool.Acquire<RepoSellCancelRequestedEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2cc34a22ea6347619b065c5874e0b715
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,21 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public sealed class RepoSellConfirmRequestedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoSellConfirmRequestedEventArgs).GetHashCode();
public override int Id => EventId;
public static RepoSellConfirmRequestedEventArgs Create()
{
return ReferencePool.Acquire<RepoSellConfirmRequestedEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 598b87b9cb8e4783bc73db5e255d31f6
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,21 @@
using GameFramework;
using GameFramework.Event;
namespace GeometryTD.CustomEvent
{
public sealed class RepoSellModeToggleRequestedEventArgs : GameEventArgs
{
public static int EventId => typeof(RepoSellModeToggleRequestedEventArgs).GetHashCode();
public override int Id => EventId;
public static RepoSellModeToggleRequestedEventArgs Create()
{
return ReferencePool.Acquire<RepoSellModeToggleRequestedEventArgs>();
}
public override void Clear()
{
}
}
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 44692273ce6a417a875dea9675663d82
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: