Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 2.26 KB

File metadata and controls

42 lines (31 loc) · 2.26 KB

Tools / Inventory

The inventory module covers item storage, pickup, drop, hand/equip visuals, and basic UI binding.

Main pieces

  • InventoryComponent manages entries, counts, save/load integration, and inventory events.
  • PickableItem turns a world object into a pickup source.
  • InventoryDropper spawns dropped world items from inventory entries.
  • InventoryHand visualizes the currently selected item in hand.
  • InventoryView and related UI helpers bind inventory data to UI.

Quick start

  1. Add InventoryComponent to the target object.
  2. Assign an InventoryDatabase if you want item metadata and validation.
  3. Add PickableItem to world drops and point it to an inventory, or use collector inventory resolution.
  4. Add InventoryDropper if items should return to the world.
  5. Bind counts and views with InventoryView, InventoryItemCountText, or InventoryTotalCountText.

English stubs (this folder)

Page Description
InventoryComponent Facade summary + pointer to mechanics sections
InventorySlotGridView Slot UI + click transfer
InventoryItemState Instance state capture/restore

Russian docs (canonical detail)

Page Description
Inventory README Overview + mechanics index
InventoryComponent, PickableItem, InventoryDropper Core runtime
InventorySlotGridView, InventoryItemState Slot UI + instance payload
InventoryView, InventoryHand, HandView UI and hand view
InventoryItemCountText, InventoryTotalCountText Count display

See also