mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-05-07 00:39:00 +08:00
- 新增 CQRS 核心概念、命令查询处理器实现指南 - 添加 CQRS 高级用法包括通知发布、管道行为和流式处理 - 提供 CQRS 最佳实践和常见问题解决方案 - 添加游戏配置系统完整接入模板和运行时读取示例 - 包含 YAML 配置文件和 JSON Schema 结构定义说明 - 提供 Godot 引擎配置桥接和热重载功能使用指南 - 添加架构模块集成和生成查询辅助功能文档
20 lines
617 B
C#
20 lines
617 B
C#
namespace GFramework.SourceGenerators.Diagnostics;
|
||
|
||
/// <summary>
|
||
/// 提供与上下文感知相关的诊断规则定义
|
||
/// </summary>
|
||
public static class ContextAwareDiagnostic
|
||
{
|
||
/// <summary>
|
||
/// 诊断规则:ContextAwareAttribute只能应用于类
|
||
/// </summary>
|
||
public static readonly DiagnosticDescriptor ContextAwareOnlyForClass = new(
|
||
"GF_Rule_001",
|
||
"ContextAware can only be applied to class",
|
||
"ContextAwareAttribute can only be applied to class '{0}'",
|
||
"GFramework.SourceGenerators.Rule",
|
||
DiagnosticSeverity.Error,
|
||
true
|
||
);
|
||
}
|