Source: addons/item_vault/backend/inventory_operation_record.gd
Syntax
class InventoryOperationRecord extends RefCountedMembers
| Name | Kind | Summary |
|---|---|---|
SCHEMA_VERSION | Field | Versioned, immutable record of a completed inventory operation. Frozen at emission time. Every command that mutates or queries inventory produces one record on `ItemVaultBus.inventory_operation_record`. |
schema_version | Property | Coarse terminal classification kept alongside the precise result code. `outcome` remains the canonical InventoryResultCode.Code. |
operation_id | Property | Stable operation ID, monotonic within the backend's lifetime. |
session_id | Property | Stable session namespace; operation_id is only unique within it, and the pair stays unique across save/load restores. |
operation_key | Property | Externally comparable operation identity. |
command_type | Property | |
item_id | Property | |
quantity | Property | |
source_container_id | Property | |
target_container_id | Property | |
currency | Property | |
outcome | Property | Typed InventoryResultCode.Code. |
outcome_kind | Property | Coarse classification for telemetry and retry handling. |
failure_reason | Property | Typed diagnostic reason independent of outcome. |
delta | Property | Detached typed state delta. |
message | Property | |
correlation_context | Property | Caller-supplied opaque correlation context, echoed from the command. |
overflow_quantity | Property | Overflow quantity when a partial operation could not fit everything; 0 = none. |
item_instance_id | Property | Stable item-instance identity, when the operation addresses one retained stack. |
instance_id | Property | Alias matching the ItemStack/event field name. |
stack_id | Property | Concrete stack boundary identity, distinct from an item-instance identity. |
resource_id | Property | Named retained resource, when the operation addresses one. |
resource_delta | Property | Signed retained-resource delta. |
resource_old_amount | Property | |
resource_new_amount | Property | |
resource_reason | Property | |
rollback_quantity | Property | Quantity restored after a rolled-back mutation. |
before_snapshot | Property | Pre-operation snapshot; null when the inventory was unavailable. |
after_snapshot | Property | Post-operation snapshot; null when the inventory was unavailable. |
snapshot | Property | Alias for after_snapshot. |
final_after | Property | |
to_dict | Method |