70 lines
3.9 KiB
Markdown
70 lines
3.9 KiB
Markdown
# Content/Blueprints 依赖关系
|
||
|
||
## 文件间引用关系
|
||
|
||
| 源文件 | 引用方式 | 目标文件 | 目标单位 |
|
||
|--------|---------|---------|---------|
|
||
| BP_TestChar | 父类 | AMyCharacter | Source/lonese/MyCharacter.h |
|
||
| BP_TestCtl | 父类 | AMyPlayerController | Source/lonese/MyPlayerController.h |
|
||
| BP_CameraPawn | 父类 | ACameraPawn | Source/lonese/CameraPawn.h |
|
||
| BP_TestMode | 父类 | GameModeBase | Engine |
|
||
| BP_Hud | 父类 | HUD | Engine |
|
||
| BP_UniversalEndpointComp | 父类 | UEndpointComponent | CharacterControl plugin |
|
||
| BP_MoveInput | 父类 | UEndpointComponent | CharacterControl plugin |
|
||
| BP_ControllerComp | 父类 | BP_EndpointComp_C | Content/Blueprints |
|
||
| BP_SayHello | 父类 | UEndpointComponent | CharacterControl plugin |
|
||
| BP_DefaultContainer | 父类 | UDefaultContainer | Item plugin |
|
||
| BP_InventoryComp | 父类 | ActorComponent | Engine |
|
||
| BP_DropItemInvComp | 父类 | BP_InventoryComp | Content/Blueprints |
|
||
| BP_Bomb | 父类 | Actor | Engine |
|
||
| WBP_TestUI | 父类 | UserWidget | Engine |
|
||
| WBP_InventoryView | 父类 | UserWidget | Engine |
|
||
| BP_TestChar | 组件 | BP_UniversalEndpointComp | Content/Blueprints |
|
||
| BP_TestChar | 组件 | BP_MoveInput | Content/Blueprints |
|
||
| BP_TestChar | 组件 | BP_ControllerComp | Content/Blueprints |
|
||
| BP_TestChar | 组件 | BP_SayHello | Content/Blueprints |
|
||
| BP_TestChar | 组件 | UCommandRouterComponent | CharacterControl plugin |
|
||
| BP_TestChar | CameraActorClass | BP_CameraPawn | Content/Blueprints |
|
||
| BP_TestMode | DefaultPawnClass | BP_TestChar | Content/Blueprints |
|
||
| BP_TestMode | PlayerControllerClass | BP_TestCtl | Content/Blueprints |
|
||
| BP_TestMode | HUDClass | BP_Hud | Content/Blueprints |
|
||
| **BP_NewChar** | 引用(动画) | **ABP_TestChar** | Content/Blueprints |
|
||
| **BP_Barrel** | 引用 | **WBP_InventoryView** | Content/Blueprints |
|
||
| **BP_Barrel** | 包含(变量) | **WBP_Window** | Content/Blueprints |
|
||
| **BP_ItemTrap** | 引用 | **BP_NewChar** | Content/Blueprints |
|
||
| **BP_TestItemCluster** | 引用(子物品) | **BP_TestItem** | Content/Blueprints |
|
||
| **BP_ItemViewDataView** | 包含(变量) | **WBP_InventoryView** | Content/Blueprints |
|
||
| **WBP_Module1** | 引用 | **WBP_Circle** | Content/Blueprints |
|
||
| **WBP_Module2** | 引用 | **WBP_Resources** | Content/Blueprints |
|
||
| **WBP_ItemViewBox** | 引用 | **WBP_InventoryView** | Content/Blueprints |
|
||
| **WBP_ItemViewBox** | 引用 | **BP_ItemViewDataView** | Content/Blueprints |
|
||
|
||
**新增(10 条):** 加粗标记的行为阶段 1 新增的 17 个文档中提取的模块内引用关系。
|
||
**无依赖:** BP_Trap、WBP_Hint、WBP_Window、WBP_ChoiceButton 不引用模块内其他资产。
|
||
**Arts 引用:** WBP_Circle、WBP_Resources、ABP_TestChar 引用了 /Game/Arts/ 下的纹理/材质/骨骼资源,不属于 Content/Blueprints 模块。
|
||
|
||
## 关键依赖链
|
||
|
||
Game Mode → Pawn: BP_TestMode (DefaultPawnClass=BP_TestChar, PlayerControllerClass=BP_TestCtl, HUDClass=BP_Hud)
|
||
|
||
Character → Camera: BP_TestChar → CameraActorClass=BP_CameraPawn → ACameraPawn
|
||
|
||
Input Pipeline: BP_TestCtl (AMyPlayerController) → Enhanced Input → UCommandInputComponent (on BP_TestChar) → UCommandRouterComponent → UEndpointComponent subclasses
|
||
|
||
Item Pipeline: BP_DefaultContainer (UDefaultContainer) ← BP_InventoryComp (IInventory) ← BP_DropItemInvComp
|
||
|
||
UI Pipeline: WBP_TestUI (implements IPresentationScriptExecutor) → UDialogPresentationSubsystem
|
||
|
||
Item UI:
|
||
- WBP_InventoryView → BP_InventoryComp (via ViewCache/OnViewChanged) → BP_DefaultContainer (IItemContainer)
|
||
- WBP_ItemViewBox → BP_ItemViewDataView → WBP_InventoryView
|
||
|
||
Test/Playground Flow:
|
||
- BP_ItemTrap → BP_NewChar (target) → BP_InventoryComp / BP_DefaultContainer (item injection)
|
||
- BP_TestItemCluster → BP_TestItem (child items)
|
||
- BP_Barrel → BP_Hud + BP_TestCtl → WBP_Window (barrel UI) → WBP_InventoryView (inventory display)
|
||
|
||
Dialog UI Modules:
|
||
- WBP_Module1 → WBP_Circle (progress ring)
|
||
- WBP_Module2 → WBP_Resources (resource display)
|