GwWuYou 157b3ce846 refactor(events): 将类型事件系统重构为事件总线
- 将TypeEventSystem重命名为EventBus
- 将IEasyEvent接口重命名为IEvent接口
- 将ITypeEventSystem接口重命名为IEventBus接口
- 更新Architecture类中使用TypeEventSystem为EventBus
- 更新ArchitectureContext中依赖注入参数类型
- 将EasyEvent泛型类重命名为Event泛型类
- 更新所有相关类型引用和实现
- 修改接口继承关系以使用新的事件接口命名
2026-01-11 11:17:30 +08:00

16 lines
437 B
C#

using System;
namespace GFramework.Core.Abstractions.events;
/// <summary>
/// 事件接口,定义了事件注册的基本功能
/// </summary>
public interface IEvent
{
/// <summary>
/// 注册事件处理函数
/// </summary>
/// <param name="onEvent">事件触发时要执行的回调函数</param>
/// <returns>用于取消注册的句柄对象</returns>
IUnRegister Register(Action onEvent);
}