Files
loneseDocument/Content/Data/TestDialogMap.md
meishibiezb a8bdf281ff update
2026-06-05 03:01:15 +08:00

48 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# TestDialogMap
## 基本信息
- **类型**: DataTable
- **父类**: —
- **源文件**: /Game/Data/TestDialogMap.TestDialogMap
- **模块**: Content/Data
## 功能概述
测试对话映射表,用于存储对话 ID 与对话数据的映射关系。作为 Dialog 系统的查询表。
## 设计用意
Dialog 系统的测试数据,用于验证对话映射查询功能。
## 职责范围
- 存储对话 ID 到对话数据的映射关系
- 供 Dialog 系统按 ID 查询对话数据
## 项目内依赖
| 依赖项 | 关系 | 源文件 |
|--------|------|--------|
| (无) | — | — |
## 外部视角
TestDialogMap 是 DataTable 数据资产,从外部调用者视角:
**公开数据**
- 包含对话 ID 到对话数据的映射关系
- 行结构由 Dialog 插件定义的 DataTable 类型决定
**外部交互方式**
- DialogTest 关卡中引用该数据表,由 Dialog 系统按 ID 查询对话数据
- 外部通过 DataTable 引用读取映射关系
- 不提供函数调用接口
## 使用方法
TestDialogMap 在项目中的使用方式:
- **DialogTest 关卡**`/Game/地图关卡/DialogTest`)— 引用该 DataTable作为对话映射查询的数据源
## 用例
| 引用方 | 路径 | 用途 |
|--------|------|------|
| DialogTest | `/Game/地图关卡/DialogTest` | 加载对话映射数据,支持按 ID 查询对话 |