Skip to content
ct

Class

ContainerSnapshot

Generated GDScript class reference for ItemVault.ContainerSnapshot.

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

Read-only snapshot of a single container at a point in time.

Source: addons/item_vault/backend/container_snapshot.gd

Syntax

class ContainerSnapshot extends RefCounted

Members

NameKindSummary
idPropertyContainer instance identifier (usually the container type id).
container_type_idPropertyContainer type identifier.
stacksPropertyStacks currently in the container.
copyProperty
slot_countPropertyNumber of concrete slots captured for a slot-based container. Zero means this is a free-list snapshot or the source did not expose slot topology.
slot_indicesPropertySlot index for each entry in [member stacks]. Free-list entries use -1. Keeping this parallel to `stacks` preserves topology without breaking the existing aggregate `stacks` API.
total_quantityMethod
countMethod
hasMethod
to_dictMethod
duplicateMethod