From e022a10bd57785d4168a8a7419f30108b2cb9c6b Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sat, 14 Mar 2026 16:54:07 +0800 Subject: [PATCH] =?UTF-8?q?refactor(architecture):=20=E5=B0=86=E6=9E=B6?= =?UTF-8?q?=E6=9E=84=E7=9B=B8=E5=85=B3=E6=96=87=E4=BB=B6=E4=BB=8E=20Archit?= =?UTF-8?q?ecture=20=E7=9B=AE=E5=BD=95=E7=A7=BB=E5=8A=A8=E5=88=B0=20Archit?= =?UTF-8?q?ectures=20=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 重命名目录名称从 Architecture 到 Architectures - 更新所有相关文件的命名空间声明 - 保持代码功能不变,仅调整目录结构和命名空间一致性 --- .../{Architecture => Architectures}/AbstractArchitecture.cs | 5 +++-- .../{Architecture => Architectures}/AbstractGodotModule.cs | 5 +++-- .../{Architecture => Architectures}/ArchitectureAnchor.cs | 2 +- .../{Architecture => Architectures}/IGodotModule.cs | 5 +++-- 4 files changed, 10 insertions(+), 7 deletions(-) rename GFramework.Godot/{Architecture => Architectures}/AbstractArchitecture.cs (97%) rename GFramework.Godot/{Architecture => Architectures}/AbstractGodotModule.cs (91%) rename GFramework.Godot/{Architecture => Architectures}/ArchitectureAnchor.cs (96%) rename GFramework.Godot/{Architecture => Architectures}/IGodotModule.cs (82%) diff --git a/GFramework.Godot/Architecture/AbstractArchitecture.cs b/GFramework.Godot/Architectures/AbstractArchitecture.cs similarity index 97% rename from GFramework.Godot/Architecture/AbstractArchitecture.cs rename to GFramework.Godot/Architectures/AbstractArchitecture.cs index a82f001..45f20e4 100644 --- a/GFramework.Godot/Architecture/AbstractArchitecture.cs +++ b/GFramework.Godot/Architectures/AbstractArchitecture.cs @@ -1,10 +1,11 @@ using GFramework.Core.Abstractions.Architectures; using GFramework.Core.Abstractions.Environment; +using GFramework.Core.Architectures; using GFramework.Core.Constants; using GFramework.Godot.Extensions; using Godot; -namespace GFramework.Godot.Architecture; +namespace GFramework.Godot.Architectures; /// /// 抽象架构类,为特定类型的架构提供基础实现框架。 @@ -15,7 +16,7 @@ public abstract class AbstractArchitecture( IEnvironment? environment = null, IArchitectureServices? services = null, IArchitectureContext? context = null -) : Core.Architectures.Architecture(configuration, environment, services, context) +) : Architecture(configuration, environment, services, context) { /// /// 存储所有已安装的Godot架构扩展组件列表 diff --git a/GFramework.Godot/Architecture/AbstractGodotModule.cs b/GFramework.Godot/Architectures/AbstractGodotModule.cs similarity index 91% rename from GFramework.Godot/Architecture/AbstractGodotModule.cs rename to GFramework.Godot/Architectures/AbstractGodotModule.cs index 289f05d..ed3973f 100644 --- a/GFramework.Godot/Architecture/AbstractGodotModule.cs +++ b/GFramework.Godot/Architectures/AbstractGodotModule.cs @@ -1,8 +1,9 @@ using GFramework.Core.Abstractions.Architectures; using GFramework.Core.Abstractions.Enums; +using GFramework.Core.Architectures; using Godot; -namespace GFramework.Godot.Architecture; +namespace GFramework.Godot.Architectures; /// /// 抽象的Godot模块基类,用于定义Godot框架中的模块行为 @@ -31,7 +32,7 @@ public abstract class AbstractGodotModule : IGodotModule /// 当模块被附加到架构时调用此方法 /// /// 被附加到的架构实例 - public virtual void OnAttach(Core.Architectures.Architecture architecture) + public virtual void OnAttach(Architecture architecture) { } diff --git a/GFramework.Godot/Architecture/ArchitectureAnchor.cs b/GFramework.Godot/Architectures/ArchitectureAnchor.cs similarity index 96% rename from GFramework.Godot/Architecture/ArchitectureAnchor.cs rename to GFramework.Godot/Architectures/ArchitectureAnchor.cs index 8c1272c..cb7d3d6 100644 --- a/GFramework.Godot/Architecture/ArchitectureAnchor.cs +++ b/GFramework.Godot/Architectures/ArchitectureAnchor.cs @@ -1,6 +1,6 @@ using Godot; -namespace GFramework.Godot.Architecture; +namespace GFramework.Godot.Architectures; /// /// 架构锚点节点类,用于在Godot场景树中作为架构组件的根节点 diff --git a/GFramework.Godot/Architecture/IGodotModule.cs b/GFramework.Godot/Architectures/IGodotModule.cs similarity index 82% rename from GFramework.Godot/Architecture/IGodotModule.cs rename to GFramework.Godot/Architectures/IGodotModule.cs index 6f217aa..0f74a41 100644 --- a/GFramework.Godot/Architecture/IGodotModule.cs +++ b/GFramework.Godot/Architectures/IGodotModule.cs @@ -1,7 +1,8 @@ using GFramework.Core.Abstractions.Architectures; +using GFramework.Core.Architectures; using Godot; -namespace GFramework.Godot.Architecture; +namespace GFramework.Godot.Architectures; /// /// Godot模块接口,定义了Godot引擎中模块的基本行为和属性 @@ -17,7 +18,7 @@ public interface IGodotModule : IArchitectureModule /// 当模块被附加到架构时调用 /// /// 要附加到的架构实例 - void OnAttach(Core.Architectures.Architecture architecture); + void OnAttach(Architecture architecture); /// /// 当模块从架构分离时调用