mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-22 10:34:30 +08:00
fix(setting): 修复 SettingsModel 构造函数参数可空性问题
- 将 IDataLocationProvider 参数标记为可空类型 - 将 TRepository 参数标记为可空类型 - 保持泛型约束不变以确保类型安全
This commit is contained in:
parent
e2fef7110d
commit
e5d6f72bac
@ -13,7 +13,7 @@ namespace GFramework.Game.setting;
|
||||
/// - 管理 Settings Data 的生命周期(Load / Save / Reset / Migration)
|
||||
/// - 编排 Settings Applicator 的 Apply 行为
|
||||
/// </summary>
|
||||
public class SettingsModel<TRepository>(IDataLocationProvider locationProvider, TRepository repository)
|
||||
public class SettingsModel<TRepository>(IDataLocationProvider? locationProvider, TRepository? repository)
|
||||
: AbstractModel, ISettingsModel
|
||||
where TRepository : class, ISettingsDataRepository
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user