mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-23 03:04:29 +08:00
- 移除多余using语句和空行,统一代码缩进格式 - 优化注释文档中的缩进和对齐格式 - 简化条件语句和方法实现,提升代码可读性 - 重构协程系统相关类的字段和方法定义格式 - 更新架构服务中容器访问方式的实现 - 调整异步操作类的属性和方法组织结构 - [skip ci]
30 lines
979 B
C#
30 lines
979 B
C#
using GFramework.Game.Abstractions.setting;
|
||
|
||
namespace GFramework.Game.setting.events;
|
||
|
||
/// <summary>
|
||
/// 表示所有设置已加载完成的事件
|
||
/// </summary>
|
||
/// <param name="all">包含所有设置节的可枚举集合</param>
|
||
public class SettingsAllLoadedEvent(IEnumerable<ISettingsSection> all) : ISettingsChangedEvent
|
||
{
|
||
/// <summary>
|
||
/// 获取所有设置节的只读集合
|
||
/// </summary>
|
||
public IReadOnlyCollection<ISettingsSection> AllSettings { get; } = all.ToList();
|
||
|
||
/// <summary>
|
||
/// 获取设置类型,始终返回 ISettingsSection 类型
|
||
/// </summary>
|
||
public Type SettingsType => typeof(ISettingsSection);
|
||
|
||
/// <summary>
|
||
/// 获取具体的设置节,此事件中始终为 null
|
||
/// </summary>
|
||
public ISettingsSection Settings => null!;
|
||
|
||
/// <summary>
|
||
/// 获取事件发生的时间(UTC时间)
|
||
/// </summary>
|
||
public DateTime ChangedAt { get; } = DateTime.UtcNow;
|
||
} |