VaultLogic
  • Welcome
  • Getting Started
    • Quickstart
  • Code & Design
    • Items
      • Vault Item
      • Stackable Item
      • Item Definition Patterns
    • Components
      • Vault Component
      • Collectable Component
    • Persistence
      • Item Serialization
      • Inventory Serialization
Powered by GitBook
On this page
  1. Code & Design
  2. Components

Vault Component

The vault component is the component that represents the inventory. The inventory is divided into different "Vaults", each of them represented by a Gameplay Tag. This feature is intended to let you segregate different item types for quicker querying and aggregation of items.

Example

You might want to have a UI Screen called "Journal" that shows all the notes the player has picked up while playing. Instead of requesting all iventory items and then filtering them by checking the item class or the presence of some gameplay tag, you can simply get all items in the "Journal" vault and know that all notes will be there. You can also safely manipulate items in this category knowing that no other system will be affected by this changes.

PreviousComponentsNextCollectable Component

Last updated 4 months ago