mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
- 新增 DataRepository 类实现数据存储和读取功能 - 添加数据仓库配置选项类 DataRepositoryOptions - 定义 IData 接口作为通用数据标记接口 - 实现数据加载、保存、删除等异步操作方法 - 添加数据事件系统包括加载、保存、删除等事件类型 - 将 ISettingsData 接口重命名为 IResettable 并更新相关实现 - 更新 SettingsModel 和 SettingsPersistence 使用新的接口 - 修改 SettingsBatchChangedEvent 和 SettingsBatchSavedEvent 使用 IResettable 类型 - 重构 AudioSettings、GraphicsSettings、LocalizationSettings 继承新接口 - 更新 IPersistentApplyAbleSettings 接口依赖为 IResettable
13 lines
328 B
C#
13 lines
328 B
C#
namespace GFramework.Game.Abstractions.setting;
|
||
|
||
/// <summary>
|
||
/// 可重置设置接口,继承自ISettingsSection接口
|
||
/// 提供将设置重置为默认值的功能
|
||
/// </summary>
|
||
public interface IResettable : ISettingsSection
|
||
{
|
||
/// <summary>
|
||
/// 重置设置为默认值
|
||
/// </summary>
|
||
void Reset();
|
||
} |