Skip to content
ct

Class

ItemVaultRuntime

Generated GDScript class reference for ItemVault.ItemVaultRuntime.

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

Optional scene-owned composition root for ItemVault runtime services. Wires the pickup→inventory vertical: collectors' picked_up signals are forwarded onto the scoped bus as item_picked events, which the bridge routes into the configured inventory target. Set auto_connect_collectors to auto-wire descendant PickupsCollector2D/3D nodes on ready.

Source: addons/item_vault/item_vault_runtime.gd

Syntax

class ItemVaultRuntime extends Node

Members

NameKindSummary
busPropertyScoped event bus. Created automatically when omitted.
databasePropertyScoped item lookup. Created automatically when omitted.
bridgePropertyOptional bridge from pickup events to an ItemVault inventory target.
inventory_targetPropertyInventory-like target for the bridge. Must provide add(stack) -> ItemStack.
database_dirsPropertyFolders scanned by ItemDatabase when auto_reload_database is enabled.
auto_reload_databasePropertyReload database in _ready after applying database_dirs.
bridge_enabledPropertyEnables or disables InventoryPickupBridge when it exists.
auto_connect_collectorsPropertyWhen true, descendant PickupsCollector2D/3D nodes are auto-connected on _ready so pickups reach the inventory target without manual connect_pickup calls. Off by default to preserve explicit-wiring scenes.
initializeMethod
set_inventory_targetMethod
connect_pickupMethod
disconnect_pickupMethod