From ae9693e0ff03a31fb702f0e69ab61377cb5531d1 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Tue, 31 Mar 2026 22:32:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(config):=20=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=A0=E8=BD=BD=E5=99=A8=E4=BE=9D=E8=B5=96=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在YamlConfigLoader中添加YamlDotNet序列化库引用 - 移除YamlConfigSchemaValidator中的未使用引用 - 在全局引用中添加YAML处理相关库引用 - 优化配置模块的依赖管理和命名空间使用 --- GFramework.Game/Config/YamlConfigLoader.cs | 3 ++- GFramework.Game/Config/YamlConfigSchemaValidator.cs | 4 ---- GFramework.Game/GlobalUsings.cs | 6 +++++- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/GFramework.Game/Config/YamlConfigLoader.cs b/GFramework.Game/Config/YamlConfigLoader.cs index d6d4f59..11f2d99 100644 --- a/GFramework.Game/Config/YamlConfigLoader.cs +++ b/GFramework.Game/Config/YamlConfigLoader.cs @@ -1,5 +1,6 @@ -using System.IO; using GFramework.Game.Abstractions.Config; +using YamlDotNet.Serialization; +using YamlDotNet.Serialization.NamingConventions; namespace GFramework.Game.Config; diff --git a/GFramework.Game/Config/YamlConfigSchemaValidator.cs b/GFramework.Game/Config/YamlConfigSchemaValidator.cs index 3998ec9..bc16016 100644 --- a/GFramework.Game/Config/YamlConfigSchemaValidator.cs +++ b/GFramework.Game/Config/YamlConfigSchemaValidator.cs @@ -1,7 +1,3 @@ -using System.Globalization; -using System.IO; -using System.Text.Json; - namespace GFramework.Game.Config; /// diff --git a/GFramework.Game/GlobalUsings.cs b/GFramework.Game/GlobalUsings.cs index 74db065..b91413e 100644 --- a/GFramework.Game/GlobalUsings.cs +++ b/GFramework.Game/GlobalUsings.cs @@ -16,4 +16,8 @@ global using System.Collections.Generic; global using System.Collections.Concurrent; 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 System.Globalization; +global using System.IO; +global using System.Text.Json; +global using YamlDotNet.RepresentationModel; \ No newline at end of file