mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 将TypeEventSystem重命名为EventBus - 将IEasyEvent接口重命名为IEvent接口 - 将ITypeEventSystem接口重命名为IEventBus接口 - 更新Architecture类中使用TypeEventSystem为EventBus - 更新ArchitectureContext中依赖注入参数类型 - 将EasyEvent泛型类重命名为Event泛型类 - 更新所有相关类型引用和实现 - 修改接口继承关系以使用新的事件接口命名
16 lines
437 B
C#
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);
|
|
} |