SS1984 - Modules - TypesVar Details - Proc Details

differentiate_storage_size

Component that dynamically toggles a storage item's weight class (w_class) based on whether it is completely empty or contains any items. Note: This component operates in a strict binary mode, not progressively. It instantly resizes the storage to its maximum expanded size as soon as a single item is placed inside, rather than scaling up incrementally based on the volume or number of stored items.

Vars

expanded_sizeThe weight class of the storage item when it contains at least one item.
folded_sizeThe weight class of the storage item when it is empty. Falls back to initial_size if not specified.
initial_sizeThe original weight class of the storage item before the component was attached.
storageReference to the parent object cast as a storage item.

Procs

update_weightChecks the storage contents and updates its weight class to either folded_size or expanded_size.

Var Details

expanded_size

The weight class of the storage item when it contains at least one item.

folded_size

The weight class of the storage item when it is empty. Falls back to initial_size if not specified.

initial_size

The original weight class of the storage item before the component was attached.

storage

Reference to the parent object cast as a storage item.

Proc Details

update_weight

Checks the storage contents and updates its weight class to either folded_size or expanded_size.