docs: 重构文档结构,添加独立模块区域 (#349)
* docs: 重构文档结构,添加独立模块区域 - 新增 /modules/ 目录用于功能模块文档 - 移动 behavior-tree 从 /guide/ 到 /modules/ - 添加模块总览页面 - 更新导航栏添加"模块"入口 - 更新侧边栏:模块区域独立侧边栏 - 更新 i18n 配置支持新模块 * style(docs): 提高文字对比度
This commit is contained in:
54
docs/modules/index.md
Normal file
54
docs/modules/index.md
Normal file
@@ -0,0 +1,54 @@
|
||||
# 功能模块
|
||||
|
||||
ESEngine 提供了丰富的功能模块,可以按需引入到你的项目中。
|
||||
|
||||
## 模块列表
|
||||
|
||||
### AI 模块
|
||||
|
||||
| 模块 | 包名 | 描述 |
|
||||
|------|------|------|
|
||||
| [行为树](/modules/behavior-tree/) | `@esengine/behavior-tree` | AI 行为树系统,支持可视化编辑 |
|
||||
| [状态机](/modules/fsm/) | `@esengine/fsm` | 有限状态机,用于角色/AI 状态管理 |
|
||||
|
||||
### 游戏逻辑
|
||||
|
||||
| 模块 | 包名 | 描述 |
|
||||
|------|------|------|
|
||||
| [定时器](/modules/timer/) | `@esengine/timer` | 定时器和冷却系统 |
|
||||
| [空间索引](/modules/spatial/) | `@esengine/spatial` | 空间查询、AOI 兴趣区域管理 |
|
||||
| [寻路系统](/modules/pathfinding/) | `@esengine/pathfinding` | A* 寻路、NavMesh 导航网格 |
|
||||
|
||||
### 工具模块
|
||||
|
||||
| 模块 | 包名 | 描述 |
|
||||
|------|------|------|
|
||||
| [可视化脚本](/modules/blueprint/) | `@esengine/blueprint` | 蓝图可视化脚本系统 |
|
||||
| [程序化生成](/modules/procgen/) | `@esengine/procgen` | 噪声函数、随机工具 |
|
||||
|
||||
### 网络模块
|
||||
|
||||
| 模块 | 包名 | 描述 |
|
||||
|------|------|------|
|
||||
| [网络同步](/modules/network/) | `@esengine/network` | 多人游戏网络同步 |
|
||||
|
||||
## 安装
|
||||
|
||||
所有模块都可以独立安装:
|
||||
|
||||
```bash
|
||||
# 安装单个模块
|
||||
npm install @esengine/behavior-tree
|
||||
|
||||
# 或使用 CLI 添加到现有项目
|
||||
npx @esengine/cli add behavior-tree
|
||||
```
|
||||
|
||||
## 平台兼容性
|
||||
|
||||
所有功能模块都是纯 TypeScript 实现,兼容:
|
||||
|
||||
- Cocos Creator 3.x
|
||||
- Laya 3.x
|
||||
- Node.js
|
||||
- 浏览器
|
||||
Reference in New Issue
Block a user