From 590f2cb5162adbae787f5e246931376d03ee34d6 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 29 Apr 2026 10:17:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(enum)=EF=BC=9A=E8=A1=A5=E5=85=85=E6=9E=9A?= =?UTF-8?q?=E4=B8=BE=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GFramework.Game/Config/YamlConfigSchemaPropertyType.cs | 3 +++ GFramework.Game/Config/YamlConfigStringFormatKind.cs | 3 +++ GFramework.Game/GFramework.Game.csproj | 1 + 3 files changed, 7 insertions(+) diff --git a/GFramework.Game/Config/YamlConfigSchemaPropertyType.cs b/GFramework.Game/Config/YamlConfigSchemaPropertyType.cs index 725819dc..cd1d464d 100644 --- a/GFramework.Game/Config/YamlConfigSchemaPropertyType.cs +++ b/GFramework.Game/Config/YamlConfigSchemaPropertyType.cs @@ -1,8 +1,11 @@ +using GFramework.Core.SourceGenerators.Abstractions.Enums; + namespace GFramework.Game.Config; /// /// 表示当前运行时 schema 校验器支持的属性类型。 /// +[GenerateEnumExtensions] internal enum YamlConfigSchemaPropertyType { /// diff --git a/GFramework.Game/Config/YamlConfigStringFormatKind.cs b/GFramework.Game/Config/YamlConfigStringFormatKind.cs index bb13a63c..4be2a273 100644 --- a/GFramework.Game/Config/YamlConfigStringFormatKind.cs +++ b/GFramework.Game/Config/YamlConfigStringFormatKind.cs @@ -1,8 +1,11 @@ +using GFramework.Core.SourceGenerators.Abstractions.Enums; + namespace GFramework.Game.Config; /// /// 表示当前 Runtime / Generator / Tooling 共享支持的字符串 format 子集。 /// +[GenerateEnumExtensions] internal enum YamlConfigStringFormatKind { /// diff --git a/GFramework.Game/GFramework.Game.csproj b/GFramework.Game/GFramework.Game.csproj index 6a81f01f..f697feee 100644 --- a/GFramework.Game/GFramework.Game.csproj +++ b/GFramework.Game/GFramework.Game.csproj @@ -9,6 +9,7 @@ true +