Source: addons/item_vault/item_vault_runtime.gd
Syntax
class ItemVaultRuntime extends NodeMembers
| Name | Kind | Summary |
|---|---|---|
bus | Property | 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. Scoped event bus. Created automatically when omitted. |
database | Property | Scoped item lookup. Created automatically when omitted. |
bridge | Property | Optional bridge from pickup events to an ItemVault inventory target. |
inventory_target | Property | Inventory-like target for the bridge. Must provide add(stack) -> ItemStack. |
database_dirs | Property | Folders scanned by ItemDatabase when auto_reload_database is enabled. |
auto_reload_database | Property | Reload database in _ready after applying database_dirs. |
bridge_enabled | Property | Enables or disables InventoryPickupBridge when it exists. |
auto_connect_collectors | Property | When 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. |
initialize | Method | |
set_inventory_target | Method | |
connect_pickup | Method | |
disconnect_pickup | Method |