refactor(global): 统一项目全局命名空间引用

- 在GFramework.Game项目中添加暂停抽象接口的全局引用
- 在GFramework.Game项目中添加日志抽象接口的全局引用
- 从测试项目的UI路由交互测试文件中移除不必要的using声明
- 将测试项目的全局using声明统一到GlobalUsings.cs文件中
- 在GFramework.Godot项目中添加扩展方法的全局引用
- 优化全局命名空间引用的组织结构
This commit is contained in:
GeWuYou 2026-04-17 22:51:34 +08:00
parent 053fd4a371
commit f011f3158f
5 changed files with 10 additions and 6 deletions

View File

@ -16,4 +16,8 @@ global using Moq;
global using System;
global using System.Collections.Generic;
global using System.Linq;
global using System.Threading.Tasks;
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;

View File

@ -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;
/// <summary>

View File

@ -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;
global using YamlDotNet.RepresentationModel;
global using GFramework.Core.Abstractions.Logging;

View File

@ -1,3 +1,4 @@
using GFramework.Core.Abstractions.Pause;
using GFramework.Core.Extensions;
using GFramework.Game.Abstractions.Enums;
using GFramework.Game.Abstractions.UI;

View File

@ -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;
global using Godot;
global using GFramework.Godot.Extensions;