GFramework/GFramework.Game/Setting/Events/SettingsResetAllEvent.cs
gewuyou ff553977e3 chore(license): 补齐 Apache-2.0 文件头治理
- 新增许可证文件头检查与修复脚本

- 补充维护者手动修复 PR 工作流和 CI 校验

- 更新贡献指南中的文件头说明

- 补齐仓库维护源码和配置文件的许可证声明
2026-05-03 19:39:49 +08:00

33 lines
1010 B
C#

// Copyright (c) 2025-2026 GeWuYou
// SPDX-License-Identifier: Apache-2.0
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;
}