From f5d1985a59c9d3ab756586f90aab408f85ee17e5 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Sun, 8 Mar 2026 21:37:37 +0800 Subject: [PATCH] =?UTF-8?q?docs(ecs):=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B8=AD=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=A1=A8=E7=A4=BA=E5=92=8C=E7=9B=B8=E5=85=B3=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将文档中的 `ArchSystemAdapter` 替换为 `ArchSystemAdapter<T>` 以正确显示尖括号 - 移除重复的许可证信息和分隔线 - 删除过时的文档链接,保持导航结构简洁 --- docs/zh-CN/ecs/arch.md | 16 +++++----------- docs/zh-CN/ecs/index.md | 6 ------ 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/docs/zh-CN/ecs/arch.md b/docs/zh-CN/ecs/arch.md index 19a1441..6e699ba 100644 --- a/docs/zh-CN/ecs/arch.md +++ b/docs/zh-CN/ecs/arch.md @@ -109,7 +109,7 @@ public struct Health(float current, float max) ### 4. 创建系统 -系统继承自 `ArchSystemAdapter`: +系统继承自 `ArchSystemAdapter<T>`: ```csharp using Arch.Core; @@ -349,9 +349,9 @@ world.Clear(); ## 系统适配器 -### ArchSystemAdapter +### ArchSystemAdapter<T> -`ArchSystemAdapter` 桥接 Arch.System.ISystem 到 GFramework 架构: +`ArchSystemAdapter<T>` 桥接 Arch.System.ISystem<T> 到 GFramework 架构: ```csharp public sealed class MySystem : ArchSystemAdapter @@ -415,7 +415,7 @@ public sealed class MySystem : ArchSystemAdapter ### 访问框架服务 -`ArchSystemAdapter` 继承自 `AbstractSystem`,可以使用所有 GFramework 的扩展方法: +`ArchSystemAdapter<T>` 继承自 `AbstractSystem`,可以使用所有 GFramework 的扩展方法: ```csharp public sealed class ServiceAccessSystem : ArchSystemAdapter @@ -742,10 +742,4 @@ protected override void OnUpdate(in float deltaTime) ## 相关资源 - [Arch.Core 官方文档](https://github.com/genaray/Arch) -- [ECS 概述](./index.md) -- [ECS 最佳实践](./best-practices.md) -- [性能优化指南](./performance.md) - ---- - -**许可证**:MIT License +- [ECS 概述](./index.md) \ No newline at end of file diff --git a/docs/zh-CN/ecs/index.md b/docs/zh-CN/ecs/index.md index 63100e6..b02b696 100644 --- a/docs/zh-CN/ecs/index.md +++ b/docs/zh-CN/ecs/index.md @@ -283,15 +283,9 @@ public class ScoreSystem : AbstractSystem ## 下一步 - [Arch ECS 集成指南](./arch.md) - 详细的 Arch ECS 使用文档 -- [ECS 最佳实践](./best-practices.md) - ECS 设计模式和优化技巧 -- [性能优化](./performance.md) - ECS 性能优化指南 ## 相关资源 - [Architecture 架构系统](../core/architecture.md) - [System 系统](../core/system.md) - [事件系统](../core/events.md) - ---- - -**许可证**:MIT License