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

47 lines
1.4 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.
# TestItemDefTable
## 基本信息
- **类型**: DataTable
- **父类**: —
- **源文件**: /Game/Data/Item/TestItemDefTable.TestItemDefTable
- **模块**: Content/Data/Item
## 功能概述
测试物品定义表,用于存储物品定义的测试数据。作为物品系统的配置数据输入。
## 设计用意
物品系统的测试数据表用于验证物品定义ItemDef的加载和解析流程。
## 职责范围
- 存储测试用物品定义数据行
- 供物品系统读取和解析物品定义
## 项目内依赖
| 依赖项 | 关系 | 源文件 |
|--------|------|--------|
| (无) | — | — |
## 外部视角
TestItemDefTable 是 DataTable 数据资产,从外部调用者视角:
**公开数据**
- 包含测试用物品定义ItemDef数据行
- 行结构由 Item 插件定义的 DataTable 类型决定
**外部交互方式**
- Item 插件的 UItemRegistrySubsystem 在运行时加载,注册物品定义
- BP_InventoryComp 等组件通过物品注册表间接引用其中的物品定义
- 当前项目内无其他资产直接引用MCP 未发现引用者),通过运行时路径加载
## 使用方法
TestItemDefTable 在项目中的使用方式:
- 由物品系统的 UItemRegistrySubsystem 加载,作为物品定义的测试数据源
- BP_InventoryComp 在其 BeginPlay 逻辑中通过物品注册表读取物品定义
## 用例
(项目内暂无直接使用示例 — 可能通过运行时路径动态加载)