mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 新增 IKeyValue 接口定义通用键值对数据结构契约 - 创建 IRegistry 接口提供通用注册表功能定义 - 实现 KeyValueRegistryBase 基类提供基于字典的键值对管理 - 添加 GodotSceneRegistry 类管理Godot场景资源 - 重构 GodotUiRegistry 和 GodotUiFactory 使用新的注册表基类 - 移除废弃的 IWritableUiRegistry 接口 - 更新项目文件添加注册表相关目录结构
19 lines
503 B
C#
19 lines
503 B
C#
namespace GFramework.Core.Abstractions.bases;
|
|
|
|
/// <summary>
|
|
/// 表示键值对的接口,定义了通用的键值对数据结构契约
|
|
/// </summary>
|
|
/// <typeparam name="TKey">键的类型</typeparam>
|
|
/// <typeparam name="TValue">值的类型</typeparam>
|
|
public interface IKeyValue<out TKey, out TValue>
|
|
{
|
|
/// <summary>
|
|
/// 获取键值对中的键
|
|
/// </summary>
|
|
TKey Key { get; }
|
|
|
|
/// <summary>
|
|
/// 获取键值对中的值
|
|
/// </summary>
|
|
TValue Value { get; }
|
|
} |