custom type re
InventoryChangeRequest
re.InventoryChangeRequest
- 7 properties
One change in InventoryChangeRequested that waits for approval.
Properties
| Property | Type | Description |
|---|---|---|
transaction | uint | Pass this to Inventory.Approve or Inventory.Reject. |
kind | re.InventoryChangeKind | |
destination | re.InventoryId | The inventory the item goes into, or 0 for a drop, whose inventory is created on approval. For Updated and Generated it is the inventory that contains the item. |
source | re.InventoryId | The inventory the item comes from for Transfer, otherwise 0. |
item | re.ItemInfo | The server's copy for Transfer, and the client's version for every other kind. Its quantity is the amount that changes, or the whole stack for Updated and Generated. |
previous | re.ItemInfo | For Updated and Generated, the server's copy before the change, to compare stats and parts with. For Generated this is the item as the server created it, without the client's rolls. Empty (record 0) for other kinds. |
distance | float | For Claimed, how far the client's player is from the entity in meters, otherwise 0. |