Skip to content
ct

Class

FreeListStorage

Generated GDScript class reference for ItemVault.FreeListStorage.

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

Free-list storage strategy for [ItemContainer] (#147). Owns [member _stacks] and the merge/new-stack/weight-capacity rules.

Source: addons/item_vault/inventory/free_list_storage.gd

Syntax

class FreeListStorage extends ContainerStorage

Members

NameKindSummary
WEIGHT_EPSILONFieldTolerance for floating-point weight comparisons. Repeated magic-number tolerances (0.001) were scattered across add/can_accept; this centralizes them so the threshold is auditable and consistent (#152).
clearMethod
addMethod
removeMethod
extract_stacksMethod
extract_fragmentsMethod
countMethod
has_spaceMethod
can_acceptMethod
weightMethod
all_itemsMethod
stacksMethod
stack_atMethod
to_dictMethod
load_fromMethod