Skip to content
ct

Class

ContainerStorage

Generated GDScript class reference for ItemVault.ContainerStorage.

Status
Current
Version
v1.0
Updated
2026-07-31

Storage-strategy contract for [ItemContainer] (#147). Removes the slot/free-list fork from [ItemContainer]'s public method bodies. Concrete strategies ([FreeListStorage], [SlotStorage]) own their data and the validation/weight/capacity rules for their mode; [ItemContainer] delegates every public operation to the active strategy instead of branching on [method ItemContainer.is_slot_based].

Source: addons/item_vault/inventory/container_storage.gd

Syntax

class ContainerStorage extends RefCounted

Members

NameKindSummary
typeProperty
configureMethod
clearMethod
addMethod
removeMethod
extract_stacksMethod
extract_fragmentsMethod
countMethod
has_spaceMethod
can_acceptMethod
weightMethod
all_itemsMethod
stacksMethod
slotsMethod
stack_atMethod
slot_atMethod
add_at_slotMethod
to_dictMethod
load_fromMethod