From f011f3158fce5d4f731d498e04fbadf925354145 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Fri, 17 Apr 2026 22:51:34 +0800 Subject: [PATCH] =?UTF-8?q?refactor(global):=20=E7=BB=9F=E4=B8=80=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=85=A8=E5=B1=80=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4?= =?UTF-8?q?=E5=BC=95=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在GFramework.Game项目中添加暂停抽象接口的全局引用 - 在GFramework.Game项目中添加日志抽象接口的全局引用 - 从测试项目的UI路由交互测试文件中移除不必要的using声明 - 将测试项目的全局using声明统一到GlobalUsings.cs文件中 - 在GFramework.Godot项目中添加扩展方法的全局引用 - 优化全局命名空间引用的组织结构 --- GFramework.Game.Tests/GlobalUsings.cs | 6 +++++- GFramework.Game.Tests/UI/UiRouterInteractionTests.cs | 3 --- GFramework.Game/GlobalUsings.cs | 3 ++- GFramework.Game/UI/UiRouterBase.cs | 1 + GFramework.Godot/GlobalUsings.cs | 3 ++- 5 files changed, 10 insertions(+), 6 deletions(-) diff --git a/GFramework.Game.Tests/GlobalUsings.cs b/GFramework.Game.Tests/GlobalUsings.cs index 6b9d4d62..1ea2af31 100644 --- a/GFramework.Game.Tests/GlobalUsings.cs +++ b/GFramework.Game.Tests/GlobalUsings.cs @@ -16,4 +16,8 @@ global using Moq; global using System; global using System.Collections.Generic; global using System.Linq; -global using System.Threading.Tasks; \ No newline at end of file +global using System.Threading.Tasks; +global using System.Reflection; +global using GFramework.Game.Abstractions.Enums; +global using GFramework.Game.Abstractions.UI; +global using GFramework.Game.UI; diff --git a/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs b/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs index 205e1d6d..160cb9ef 100644 --- a/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs +++ b/GFramework.Game.Tests/UI/UiRouterInteractionTests.cs @@ -11,9 +11,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System.Reflection; -using GFramework.Game.UI; - namespace GFramework.Game.Tests.UI; /// diff --git a/GFramework.Game/GlobalUsings.cs b/GFramework.Game/GlobalUsings.cs index b91413e9..687ce844 100644 --- a/GFramework.Game/GlobalUsings.cs +++ b/GFramework.Game/GlobalUsings.cs @@ -20,4 +20,5 @@ global using System.Threading.Tasks; global using System.Globalization; global using System.IO; global using System.Text.Json; -global using YamlDotNet.RepresentationModel; \ No newline at end of file +global using YamlDotNet.RepresentationModel; +global using GFramework.Core.Abstractions.Logging; diff --git a/GFramework.Game/UI/UiRouterBase.cs b/GFramework.Game/UI/UiRouterBase.cs index 34b64132..ede1b51b 100644 --- a/GFramework.Game/UI/UiRouterBase.cs +++ b/GFramework.Game/UI/UiRouterBase.cs @@ -1,3 +1,4 @@ +using GFramework.Core.Abstractions.Pause; using GFramework.Core.Extensions; using GFramework.Game.Abstractions.Enums; using GFramework.Game.Abstractions.UI; diff --git a/GFramework.Godot/GlobalUsings.cs b/GFramework.Godot/GlobalUsings.cs index 41d45db7..818d6b41 100644 --- a/GFramework.Godot/GlobalUsings.cs +++ b/GFramework.Godot/GlobalUsings.cs @@ -16,4 +16,5 @@ global using System.Collections.Generic; global using System.Linq; global using System.Threading; global using System.Threading.Tasks; -global using Godot; \ No newline at end of file +global using Godot; +global using GFramework.Godot.Extensions;