This is the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Inventory

How to work with GS_Play inventory — container-based item storage with slots and stacking.

The Inventory system provides container-based item storage for entities. Inventory components define slot-based containers that hold item data, support stacking, and enable item transfer between entities (player to chest, vendor to player).

For component properties and the inventory data model, see the Framework API reference.

 

Contents


How Inventory Works

ConceptWhat It Means
ContainerA component on an entity that holds item slots. Players, chests, vendors, and loot drops are all containers.
SlotAn individual position within a container. Each slot holds one item type.
StackingMultiple units of the same item can occupy a single slot up to a maximum stack size.
TransferItems move between containers via slot references — no intermediate state required.

Glossary

TermMeaning
ContainerA component on an entity that holds item slots
SlotAn individual position within a container that holds one item type
StackingMultiple units of the same item occupying a single slot up to a maximum count

For full definitions, see the Glossary.


See Also

For the full API, component properties, and C++ extension guide:

For related systems:


Get GS_Item

GS_Item — Explore this gem on the product page and add it to your project.