Owns registered ItemDefinition resources and resolves stable ids.
Source: addons/item_vault/items/item_database.gd
Syntax
class ItemDatabase extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
definition_dirs | Property | Folders (relative to res://) to scan for ItemDefinition .tres/.res files. Configure from ItemVaultRuntime or a game-owned composition root. |
definition_json_files | Property | JSON catalog files with shape: { "version": 1, "items": [...] }. Games with large catalogs can opt into data files without replacing .tres scans. |
reload | Method | |
get_def | Method | |
all | Method | |
register | Method | |
load_json_file | Method | |
resource_path | Property | |
resource | Property |