From cd25f8effefe8882a8b026855ce1f2e5f007cfea Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Wed, 11 Feb 2026 15:18:12 +0800 Subject: [PATCH] =?UTF-8?q?docs(game):=20=E6=9B=B4=E6=96=B0=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E8=AE=BE=E7=BD=AE=E6=96=87=E6=A1=A3=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=B3=A8=E9=87=8A=E5=92=8C=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 GameSettings 类的 XML 文档注释 - 移除 GameSettings 应用器的 XML 文档注释 - 修正 Factory Pattern 描述中的方法名称格式 - 更新设计模式说明以匹配实际实现细节 --- docs/zh-CN/game/setting.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/docs/zh-CN/game/setting.md b/docs/zh-CN/game/setting.md index 12a3f1a..073a998 100644 --- a/docs/zh-CN/game/setting.md +++ b/docs/zh-CN/game/setting.md @@ -98,9 +98,6 @@ await settingsSystem.Apply(types); ### 创建自定义设置 ```csharp -/// -/// 游戏设置类 -/// public class GameSettings : ISettingsSection { public float GameSpeed { get; set; } = 1.0f; @@ -116,9 +113,6 @@ gameSettings.GameSpeed = 1.5f; ### 创建可应用设置 ```csharp -/// -/// 游戏设置应用器 -/// public class GameSettings : ISettingsSection, IApplyAbleSettings { public float GameSpeed { get; set; } = 1.0f; @@ -187,7 +181,7 @@ public interface ISettingsSystem 1. **Repository Pattern** - SettingsModel 作为设置数据的仓库 2. **Command Pattern** - IApplyAbleSettings 的 Apply 方法作为命令 -3. **Factory Pattern** - Get() 方法创建设置实例 +3. **Factory Pattern** - Get``() 方法创建设置实例 4. **Template Method** - AbstractSystem 提供初始化模板 ## 最佳实践