mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 19:03:29 +08:00
- 调整了 Architecture 类中字段和方法的布局,提升可读性 - 优化了命令执行逻辑,明确区分有无返回值的命令处理 - 规范了接口和抽象类的注释格式,增强文档清晰度 - 统一了代码风格,对齐缩进与换行符使用 - 补充了事件系统中泛型事件类的功能实现 - 完善了 README 文档中的条目结构和内容表述
14 lines
413 B
C#
14 lines
413 B
C#
namespace GFramework.Core.events;
|
|
|
|
/// <summary>
|
|
/// 事件接口,定义了事件注册的基本功能
|
|
/// </summary>
|
|
public interface IEasyEvent
|
|
{
|
|
/// <summary>
|
|
/// 注册事件处理函数
|
|
/// </summary>
|
|
/// <param name="onEvent">事件触发时要执行的回调函数</param>
|
|
/// <returns>用于取消注册的句柄对象</returns>
|
|
IUnRegister Register(Action onEvent);
|
|
} |