Skip to content

Class

ContainerStorage

Generated GDScript class reference for ItemVault.ContainerStorage.

Status
Current
Version
v1.1
Source updated
2026-09-12
Generated on
2026-10-12

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 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