Fixed-size, index-based item storage. An Inventory contains a configurable number of InventorySlot instances, each tracking an ItemID and quantity. Provides event-driven change notifications for HUD synchronization.
Architecture
Data Flow
Key Concepts
Concept
Description
Fixed size
Slot count is set via Inspector (size field) and allocated at Initialize()
ID-based storage
Slots store ItemID (type + variant), not Item references
Event-driven
OnInventoryChanged fires on SetSlot() / ClearSlot() for HUD sync
No stacking logic
Inventory is a raw container — stacking, validation, and max-stack are handled elsewhere