Serializable container for free-list or slot-based item storage. Storage behavior lives in a [ContainerStorage] strategy (FreeListStorage or SlotStorage) selected by the [ContainerType]; public operations delegate to it so there is no slot/free fork in the public method bodies (#147).
Source: addons/item_vault/inventory/item_container.gd
Syntax
class ItemContainer extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
type | Property | |
configure | Method | |
clear | Method | |
is_slot_based | Method | |
add | Method | |
remove | Method | |
extract_stacks | Method | |
extract_fragments | Method | |
count | Method | |
has | Method | |
has_space | Method | |
can_accept | Method | |
weight | Method | |
stack_at | Method | |
slot_at | Method | |
add_at_slot | Method | |
stacks | Method | |
slots | Method | |
all_items | Method | |
to_dict | Method | |
from_dict | Method | |
restore_state | Method |