namespace GFramework.Core.Abstractions.Pause; /// /// 表示暂停状态变化事件的数据。 /// 该类型用于向事件订阅者传递暂停组以及该组变化后的暂停状态。 /// public sealed class PauseStateChangedEventArgs : EventArgs { /// /// 初始化 的新实例。 /// /// 发生状态变化的暂停组。 /// 暂停组变化后的新状态。 public PauseStateChangedEventArgs(PauseGroup group, bool isPaused) { Group = group; IsPaused = isPaused; } /// /// 获取发生状态变化的暂停组。 /// public PauseGroup Group { get; } /// /// 获取暂停组变化后的新状态。 /// 为 表示进入暂停,为 表示恢复运行。 /// public bool IsPaused { get; } }