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 ContainerStorageMembers
| Name | Kind | Summary |
|---|---|---|
WEIGHT_EPSILON | Field | Tolerance 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). |
clear | Method | |
add | Method | |
remove | Method | |
extract_stacks | Method | |
extract_fragments | Method | |
count | Method | |
has_space | Method | |
can_accept | Method | |
weight | Method | |
all_items | Method | |
stacks | Method | |
stack_at | Method | |
to_dict | Method | |
load_from | Method |