GFramework/GFramework.Game/Setting/Events/SettingsResetAllEvent.cs
GeWuYou fb14d7122c docs(style): 更新文档中的命名空间导入格式
- 将所有小写的命名空间导入更正为首字母大写格式
- 统一 GFramework 框架的命名空间引用规范
- 修复 core、ecs、godot 等模块的命名空间导入错误
- 标准化文档示例代码中的 using 语句格式
- 确保所有文档中的命名空间引用保持一致性
- 更新 global using 语句以匹配正确的命名空间格式
2026-03-10 07:18:49 +08:00

30 lines
935 B
C#

using GFramework.Game.Abstractions.Setting;
namespace GFramework.Game.Setting.Events;
/// <summary>
/// 表示所有设置重置完成事件
/// </summary>
/// <param name="newSettings">重置后的所有设置</param>
public class SettingsResetAllEvent(IEnumerable<ISettingsSection> newSettings) : ISettingsChangedEvent
{
/// <summary>
/// 获取重置后的所有设置
/// </summary>
public IReadOnlyCollection<ISettingsSection> NewSettings { get; } = newSettings.ToList();
/// <summary>
/// 获取设置类型,固定返回 ISettingsSection
/// </summary>
public Type SettingsType => typeof(ISettingsSection);
/// <summary>
/// 获取设置实例,批量事件中返回 null
/// </summary>
public ISettingsSection Settings => null!;
/// <summary>
/// 获取重置时间
/// </summary>
public DateTime ChangedAt { get; } = DateTime.UtcNow;
}