GFramework/GFramework.Core/events/ICanRegisterEvent.cs
GwWuYou 82713e34f0 refactor(core): 重构架构和命令相关代码结构
- 调整了 Architecture 类中字段和方法的布局,提升可读性
- 优化了命令执行逻辑,明确区分有无返回值的命令处理
- 规范了接口和抽象类的注释格式,增强文档清晰度
- 统一了代码风格,对齐缩进与换行符使用
- 补充了事件系统中泛型事件类的功能实现
- 完善了 README 文档中的条目结构和内容表述
2025-12-12 21:10:21 +08:00

10 lines
452 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using GFramework.Core.rule;
namespace GFramework.Core.events;
/// <summary>
/// 定义一个可以注册事件的接口继承自IBelongToArchitecture接口。
/// 该接口用于标识那些能够注册事件的对象,通常在框架的事件系统中使用。
/// 实现此接口的类型表明它属于某个架构组件,并具备事件注册的能力。
/// </summary>
public interface ICanRegisterEvent : IBelongToArchitecture;