using GFramework.Game.Abstractions.setting;
namespace GFramework.Game.setting.events;
///
/// 表示设置批量保存事件
///
/// 要保存的设置数据集合
public class SettingsBatchSavedEvent(IEnumerable settings) : ISettingsChangedEvent
{
///
/// 获取已保存的设置数据只读集合
///
public IReadOnlyCollection SavedSettings { get; } = settings.ToList();
///
/// 获取设置类型(始终返回ISettingsSection类型)
///
public Type SettingsType => typeof(ISettingsSection);
///
/// 获取设置节(在此事件中始终为null)
///
public ISettingsSection Settings => null!;
///
/// 获取更改发生的时间(UTC时间)
///
public DateTime ChangedAt { get; } = DateTime.UtcNow;
}