From e84af1512d73502de35835edaaea2caa0e47b4c5 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sun, 5 Apr 2026 20:08:28 +0800 Subject: [PATCH] =?UTF-8?q?feat(setting):=20=E6=B7=BB=E5=8A=A0=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E5=8C=96=E8=AE=BE=E7=BD=AE=E6=B5=8B=E8=AF=95=E5=B9=B6?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BE=9D=E8=B5=96=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 GodotLocalizationSettingsTests 中添加核心本地化接口引用 - 为 GodotLocalizationSettings 添加架构依赖项 - 配置 Godot 全局命名空间以便更简单的 API 访问 - 更新测试文件中的设置数据抽象层依赖项 - 简化 Godot 项目中的全局 using 指令结构 --- .../Setting/GodotLocalizationSettingsTests.cs | 3 +++ GFramework.Godot/GlobalUsings.cs | 3 ++- GFramework.Godot/Setting/GodotLocalizationSettings.cs | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/GFramework.Game.Tests/Setting/GodotLocalizationSettingsTests.cs b/GFramework.Game.Tests/Setting/GodotLocalizationSettingsTests.cs index ee13a7c1..2d651627 100644 --- a/GFramework.Game.Tests/Setting/GodotLocalizationSettingsTests.cs +++ b/GFramework.Game.Tests/Setting/GodotLocalizationSettingsTests.cs @@ -1,3 +1,6 @@ +using GFramework.Core.Abstractions.Localization; +using GFramework.Game.Abstractions.Setting; +using GFramework.Game.Abstractions.Setting.Data; using GFramework.Godot.Setting; using GFramework.Godot.Setting.Data; diff --git a/GFramework.Godot/GlobalUsings.cs b/GFramework.Godot/GlobalUsings.cs index 4d271811..41d45db7 100644 --- a/GFramework.Godot/GlobalUsings.cs +++ b/GFramework.Godot/GlobalUsings.cs @@ -15,4 +15,5 @@ global using System; global using System.Collections.Generic; global using System.Linq; global using System.Threading; -global using System.Threading.Tasks; \ No newline at end of file +global using System.Threading.Tasks; +global using Godot; \ No newline at end of file diff --git a/GFramework.Godot/Setting/GodotLocalizationSettings.cs b/GFramework.Godot/Setting/GodotLocalizationSettings.cs index a4e31b7f..ddcfd6fc 100644 --- a/GFramework.Godot/Setting/GodotLocalizationSettings.cs +++ b/GFramework.Godot/Setting/GodotLocalizationSettings.cs @@ -12,6 +12,7 @@ // limitations under the License. using GFramework.Core.Abstractions.Localization; +using GFramework.Core.Architectures; using GFramework.Game.Abstractions.Setting; using GFramework.Game.Abstractions.Setting.Data; using GFramework.Godot.Setting.Data;