GFramework/GFramework.Godot/scene/GodotSceneRegistry.cs
GeWuYou 3589a0cf2f feat(registry): 添加通用注册表基础设施并重构UI注册功能
- 新增 IKeyValue 接口定义通用键值对数据结构契约
- 创建 IRegistry 接口提供通用注册表功能定义
- 实现 KeyValueRegistryBase 基类提供基于字典的键值对管理
- 添加 GodotSceneRegistry 类管理Godot场景资源
- 重构 GodotUiRegistry 和 GodotUiFactory 使用新的注册表基类
- 移除废弃的 IWritableUiRegistry 接口
- 更新项目文件添加注册表相关目录结构
2026-01-18 16:01:10 +08:00

13 lines
492 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using GFramework.Core.Abstractions.registries;
using GFramework.Game.Abstractions.ui;
using Godot;
namespace GFramework.Godot.scene;
/// <summary>
/// Godot场景注册表类
/// 继承自KeyValueRegistryBase使用字符串作为键PackedScene作为值进行存储
/// 实现IUiRegistry接口提供UI场景的注册和管理功能
/// </summary>
public class GodotSceneRegistry() : KeyValueRegistryBase<string, PackedScene>(StringComparer.Ordinal),
IUiRegistry<PackedScene>;