diff --git a/GFramework.Godot.Tests/Config/GodotYamlConfigLoaderTests.cs b/GFramework.Godot.Tests/Config/GodotYamlConfigLoaderTests.cs index 52ef30fa..7fa43f71 100644 --- a/GFramework.Godot.Tests/Config/GodotYamlConfigLoaderTests.cs +++ b/GFramework.Godot.Tests/Config/GodotYamlConfigLoaderTests.cs @@ -2,7 +2,9 @@ using System; using System.IO; using System.Linq; using System.Threading.Tasks; +using GFramework.Game.Config; using GFramework.Godot.Config; +using NUnit.Framework; namespace GFramework.Godot.Tests.Config; @@ -12,10 +14,6 @@ namespace GFramework.Godot.Tests.Config; [TestFixture] public sealed class GodotYamlConfigLoaderTests { - private string _resourceRoot = null!; - private string _testRoot = null!; - private string _userRoot = null!; - /// /// 为每个测试准备独立的资源根目录与用户目录。 /// @@ -44,6 +42,10 @@ public sealed class GodotYamlConfigLoaderTests } } + private string _resourceRoot = null!; + private string _testRoot = null!; + private string _userRoot = null!; + /// /// 验证导出态会把注册过的 YAML 与 schema 文本同步到运行时缓存,再交给底层加载器。 /// diff --git a/GFramework.Godot/Config/GodotYamlConfigLoader.cs b/GFramework.Godot/Config/GodotYamlConfigLoader.cs index 35b59196..3cd9de8c 100644 --- a/GFramework.Godot/Config/GodotYamlConfigLoader.cs +++ b/GFramework.Godot/Config/GodotYamlConfigLoader.cs @@ -3,6 +3,7 @@ using GFramework.Core.Abstractions.Events; using GFramework.Game.Abstractions.Config; using GFramework.Game.Config; using GFramework.Godot.Extensions; +using FileAccess = Godot.FileAccess; namespace GFramework.Godot.Config;