InventoryChange
record in OpalScript
Immutable result of Inventory.Add and Inventory.Remove.
Properties
| Member | Description |
|---|---|
| InventoryChange.Applied | True when this command committed a stack change. |
| InventoryChange.Item | The item name this command named. |
| InventoryChange.Amount | Count added or removed. 0 when refused. |
| InventoryChange.PreviousCount | Stack count before this command. |
| InventoryChange.RemainingCount | Stack count after this command. |
| InventoryChange.Reason | Empty when Applied. Otherwise removed, invalid-item, invalid-count, full, insufficient-items, count-overflow, or data-limit. |
| InventoryChange.OperationId | Identity of this command. |
| InventoryChange.SourceId | The caller. |
| InventoryChange.TargetId | The object that owns this Inventory. |