refactor(core): 调整命名空间结构以优化模块组织

- 将 IRegistry 接口从 GFramework.Game.Abstractions.registry 移至 GFramework.Core.Abstractions.registries
- 移除 KeyValueRegistryBase 中对旧命名空间的引用
- 将 IsExternalInit 类从 System.Runtime.CompilerServices 移至 GFramework.Game.Abstractions.internals
- 更新 IGameSceneRegistry 对新注册表命名空间的引用
- 将音频和图形设置类移至 GFramework.Game.Abstractions.setting.data 子命名空间
- 将资产注册表接口更新为使用新的核心注册表命名空间
- 调整 Godot 模块中的音频总线映射命名空间至 data 子目录
- 更新 Godot 音频和图形设置类以引用正确的设置数据命名空间
This commit is contained in:
GeWuYou 2026-01-27 22:58:37 +08:00
parent 9531cd0883
commit 31045f305c
10 changed files with 11 additions and 9 deletions

View File

@ -1,6 +1,6 @@
using GFramework.Core.Abstractions.bases;
namespace GFramework.Game.Abstractions.registry;
namespace GFramework.Core.Abstractions.registries;
/// <summary>
/// 表示一个通用的注册表接口用于根据键类型T获取值类型TR的对象

View File

@ -1,5 +1,4 @@
using GFramework.Core.Abstractions.bases;
using GFramework.Game.Abstractions.registry;
namespace GFramework.Core.Abstractions.registries;

View File

@ -3,7 +3,7 @@
// when targeting netstandard2.0 or older frameworks.
#pragma warning disable S2094 // Remove this empty class
namespace System.Runtime.CompilerServices;
namespace GFramework.Game.Abstractions.internals;
internal static class IsExternalInit
{

View File

@ -1,4 +1,4 @@
using GFramework.Game.Abstractions.registry;
using GFramework.Core.Abstractions.registries;
namespace GFramework.Game.Abstractions.scene;

View File

@ -1,6 +1,6 @@
using GFramework.Core.Abstractions.versioning;
namespace GFramework.Game.Abstractions.setting;
namespace GFramework.Game.Abstractions.setting.data;
/// <summary>
/// 音频设置类,用于管理游戏中的音频配置

View File

@ -1,6 +1,6 @@
using GFramework.Core.Abstractions.versioning;
namespace GFramework.Game.Abstractions.setting;
namespace GFramework.Game.Abstractions.setting.data;
/// <summary>
/// 图形设置类,用于管理游戏的图形相关配置

View File

@ -1,5 +1,5 @@
using GFramework.Core.Abstractions.utility;
using GFramework.Game.Abstractions.registry;
using GFramework.Core.Abstractions.registries;
using GFramework.Core.Abstractions.utility;
namespace GFramework.Game.Abstractions.ui;

View File

@ -1,4 +1,6 @@
using GFramework.Game.Abstractions.setting;
using GFramework.Game.Abstractions.setting.data;
using GFramework.Godot.setting.data;
using Godot;
namespace GFramework.Godot.setting;

View File

@ -1,4 +1,5 @@
using GFramework.Game.Abstractions.setting;
using GFramework.Game.Abstractions.setting.data;
using Godot;
namespace GFramework.Godot.setting;

View File

@ -1,4 +1,4 @@
namespace GFramework.Godot.setting;
namespace GFramework.Godot.setting.data;
/// <summary>
/// 音频总线映射设置