mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-13 06:04:30 +08:00
feat(config): 添加YAML配置加载器依赖注入支持
- 引入GFramework.Core.Abstractions.Events命名空间 - 添加YamlDotNet反序列化库相关引用 - 注册配置抽象层依赖到YAML配置加载器 - 更新测试文件中的命名空间引用以匹配新架构
This commit is contained in:
parent
7fda40de42
commit
8c9fbb39b2
@ -1,4 +1,5 @@
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
|
using GFramework.Game.Abstractions.Config;
|
||||||
using GFramework.Game.Config;
|
using GFramework.Game.Config;
|
||||||
|
|
||||||
namespace GFramework.Game.Tests.Config;
|
namespace GFramework.Game.Tests.Config;
|
||||||
@ -9,8 +10,6 @@ namespace GFramework.Game.Tests.Config;
|
|||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class YamlConfigLoaderTests
|
public class YamlConfigLoaderTests
|
||||||
{
|
{
|
||||||
private string _rootPath = null!;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 为每个测试创建独立临时目录,避免文件系统状态互相污染。
|
/// 为每个测试创建独立临时目录,避免文件系统状态互相污染。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -33,6 +32,8 @@ public class YamlConfigLoaderTests
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private string _rootPath = null!;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 验证加载器能够扫描 YAML 文件并将结果写入注册表。
|
/// 验证加载器能够扫描 YAML 文件并将结果写入注册表。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@ -1,5 +1,8 @@
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using GFramework.Core.Abstractions.Events;
|
||||||
using GFramework.Game.Abstractions.Config;
|
using GFramework.Game.Abstractions.Config;
|
||||||
|
using YamlDotNet.Serialization;
|
||||||
|
using YamlDotNet.Serialization.NamingConventions;
|
||||||
|
|
||||||
namespace GFramework.Game.Config;
|
namespace GFramework.Game.Config;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user