From 8a01178cc4d174ba4e01a231aa1c2d2d3baf31fa Mon Sep 17 00:00:00 2001 From: GwWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Tue, 30 Dec 2025 18:56:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(generator):=20=E5=B0=86GameContext?= =?UTF-8?q?=E7=B1=BB=E6=94=B9=E4=B8=BA=E9=9D=99=E6=80=81=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 修改GameContext为静态类以符合设计要求 - 保持原有的架构上下文功能不变 - 优化类的访问方式和内存使用 --- .../rule/ContextAwareGeneratorSnapshotTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.SourceGenerators.Tests/rule/ContextAwareGeneratorSnapshotTests.cs b/GFramework.SourceGenerators.Tests/rule/ContextAwareGeneratorSnapshotTests.cs index 90828aa..1ea9d9b 100644 --- a/GFramework.SourceGenerators.Tests/rule/ContextAwareGeneratorSnapshotTests.cs +++ b/GFramework.SourceGenerators.Tests/rule/ContextAwareGeneratorSnapshotTests.cs @@ -58,7 +58,7 @@ public class ContextAwareGeneratorSnapshotTests namespace GFramework.Core.architecture { using GFramework.Core.Abstractions.architecture; - public class GameContext{ + public static class GameContext{ /// /// 获取字典中的第一个架构上下文 ///