How langxiyi/inventorymanager works
InventoryManager is an Unreal Engine inventory system built around replicated UObject item instances and composable inventory modules. The principal flow is player/controller requests modifying an inventory component, which manages item instances and container modules; the grid extension adds position- and size-aware placement. Item definitions provide fragment-based configuration, while pickable world items and inventory widgets expose interaction and presentation capabilities. Edges are limited to README documentation and shown/indexed references; unsampled implementations and wiring are not inferred.
Main entry points: InvSys_InventoryControllerComponent.cpp Inventory controller · InvSys_InventoryComponent.cpp Inventory component · InvSys_InventoryItemDefinition.h Item definitions · GridInvSys_GridInventoryControllerComponent.cpp Grid controller
Components 19
Inventory core
- Inventory controller
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InvSys_InventoryControllerComponent.cpp - Inventory component
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InvSys_InventoryComponent.cpp - Container modules
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InventoryObject/Fragment - Inventory objects
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InventoryObject/InvSys_BaseInventoryObject.cpp - Content mapping
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Data/InvSys_InventoryContentMapping.cpp
Items and world
- Item definitions
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Public/Data/InvSys_InventoryItemDefinition.h - Definition fragments
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Public/Data/InvSys_ItemFragment_BaseItem.h - Item instances
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Data/InvSys_InventoryItemInstance.cpp - Pickable items
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Items/InvSys_PickableItems.cpp - Storage bin
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Items/InvSys_StorageBin.cpp
Grid extension
- Grid controller
Plugins/GridInventorySystem/Source/GridInventorySystem/Private/Components/GridInvSys_GridInventoryControllerComponent.cpp - Grid inventory
Plugins/GridInventorySystem/Source/GridInventorySystem/Private/Components/GridInvSys_InventoryComponent.cpp - Grid container modules
Plugins/GridInventorySystem/Source/GridInventorySystem/Private/Components/InventoryObject/Fragment/GridInvSys_InventoryModule_Container.cpp - Grid item positions
Plugins/GridInventorySystem/Source/GridInventorySystem/Public/GridInvSys_CommonType.h
UI and messaging
- Inventory HUD
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Widgets/InvSys_InventoryHUD.cpp - Inventory widgets
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Widgets/InvSys_InventoryWidget.cpp - Gameplay message router
Plugins/GameplayMessageRouter/Source/GameplayMessageRuntime/Private/GameFramework/GameplayMessageSubsystem.cpp - Async message listener
Plugins/GameplayMessageRouter/Source/GameplayMessageRuntime/Private/GameFramework/AsyncAction_ListenForGameplayMessage.cpp
Other components
- Player
Connections 16
- Player → Inventory controller: requests actions
- Inventory controller → Inventory component: invokes operations
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InvSys_InventoryControllerComponent.cpp - Inventory component → Container modules: manages modules
- Inventory component → Inventory objects: builds objects
- Content mapping → Inventory objects: maps contents
- Item definitions → Definition fragments: contains fragments
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Public/Data/InvSys_InventoryItemDefinition.h - Item definitions → Item instances: configures instances
- Inventory controller → Pickable items: handles pickup
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InvSys_InventoryControllerComponent.cpp - Grid controller → Grid inventory: updates inventory
Plugins/GridInventorySystem/Source/GridInventorySystem/Private/Components/GridInvSys_GridInventoryControllerComponent.cpp - Grid controller → Grid container modules: checks placement
Plugins/GridInventorySystem/Source/GridInventorySystem/Private/Components/GridInvSys_GridInventoryControllerComponent.cpp - Grid item positions → Grid inventory: stores position data
Plugins/GridInventorySystem/Source/GridInventorySystem/Public/GridInvSys_CommonType.h - Inventory controller → Inventory HUD: constructs HUD
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InvSys_InventoryControllerComponent.cpp - Inventory HUD → Inventory widgets: presents inventory
- Inventory controller → Gameplay message router: broadcasts drag state
Plugins/BaseInventorySystem/Source/BaseInventorySystem/Private/Components/InvSys_InventoryControllerComponent.cpp - Async message listener → Gameplay message router: registers listener
- Storage bin → Inventory component: stores inventory