From e5d6f72bac62ed67d8b806f3436b9c2f742ec26f Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Fri, 30 Jan 2026 22:40:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(setting):=20=E4=BF=AE=E5=A4=8D=20SettingsMo?= =?UTF-8?q?del=20=E6=9E=84=E9=80=A0=E5=87=BD=E6=95=B0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=8F=AF=E7=A9=BA=E6=80=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 IDataLocationProvider 参数标记为可空类型 - 将 TRepository 参数标记为可空类型 - 保持泛型约束不变以确保类型安全 --- GFramework.Game/setting/SettingsModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GFramework.Game/setting/SettingsModel.cs b/GFramework.Game/setting/SettingsModel.cs index 58312d5..3185dce 100644 --- a/GFramework.Game/setting/SettingsModel.cs +++ b/GFramework.Game/setting/SettingsModel.cs @@ -13,7 +13,7 @@ namespace GFramework.Game.setting; /// - 管理 Settings Data 的生命周期(Load / Save / Reset / Migration) /// - 编排 Settings Applicator 的 Apply 行为 /// -public class SettingsModel(IDataLocationProvider locationProvider, TRepository repository) +public class SettingsModel(IDataLocationProvider? locationProvider, TRepository? repository) : AbstractModel, ISettingsModel where TRepository : class, ISettingsDataRepository {