InventoryTransfer
record in OpalScript
Immutable result of Inventory.TransferTo.
Properties
| Member | Description |
|---|---|
| InventoryTransfer.Applied | True when this command moved items from this inventory to the target. |
| InventoryTransfer.Item | The item name this command named. |
| InventoryTransfer.Amount | Count transferred. 0 when refused. |
| InventoryTransfer.SourceBefore | This inventory's stack count before the transfer. |
| InventoryTransfer.SourceAfter | This inventory's stack count after the transfer. |
| InventoryTransfer.TargetBefore | The target inventory's stack count before the transfer. |
| InventoryTransfer.TargetAfter | The target inventory's stack count after the transfer. |
| InventoryTransfer.Reason | Empty when Applied. Otherwise removed, invalid-item, invalid-count, missing-target, same-inventory, insufficient-items, full, count-overflow, or data-limit. |
| InventoryTransfer.OperationId | Identity of this command. |
| InventoryTransfer.SourceId | The object that owns this Inventory. |
| InventoryTransfer.TargetId | The object that owns the destination Inventory. |