From 6f61ff55aaf1a5a45ee663bb3a43699a8ae344ec Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sun, 15 Feb 2026 15:57:09 +0800 Subject: [PATCH] =?UTF-8?q?refactor(scene):=20=E4=BC=98=E5=8C=96=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E8=BF=87=E6=B8=A1=E7=AE=A1=E9=81=93=E7=9A=84=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AE=B0=E5=BD=95=E5=99=A8=E5=88=9B=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将硬编码字符串替换为 nameof 操作符以提高类型安全性 - 确保日志记录器名称与类名保持一致 - 提高代码可维护性,避免手动字符串输入错误 --- GFramework.Game/scene/SceneTransitionPipeline.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Game/scene/SceneTransitionPipeline.cs b/GFramework.Game/scene/SceneTransitionPipeline.cs index 61a73c2..3c0e741 100644 --- a/GFramework.Game/scene/SceneTransitionPipeline.cs +++ b/GFramework.Game/scene/SceneTransitionPipeline.cs @@ -24,7 +24,7 @@ namespace GFramework.Game.scene; /// public class SceneTransitionPipeline { - private static readonly ILogger Log = LoggerFactoryResolver.Provider.CreateLogger("SceneTransitionPipeline"); + private static readonly ILogger Log = LoggerFactoryResolver.Provider.CreateLogger(nameof(SceneTransitionPipeline)); private readonly List _handlers = []; private readonly Dictionary _options = new();