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