InventoryChangeData
A class in Root.Township, ATT.PlayerStates.
Payload of the ConsoleEvents.InventoryChanged console event, raised on the server by PickupEventStreamLogger when a player picks up, drops, docks or hands over an item.
- Listed in ATT, Features and other game namespaces
- Documented in Console events
Constructors
| Member | What it is |
|---|---|
InventoryChangeData() | Creates an InventoryChangeData with default values. |
Fields
| Member | What it is |
|---|---|
InventoryChangeType ChangeType | What happened to the item, such as a pickup or drop (InventoryChangeType). |
UserInfo DestinationUser | The player who received the item, when it went to another player; otherwise null. |
InventoryType InventoryType | Where the item went or came from, such as the world or a player's inventory. |
uint? ItemHash | Prefab hash of the item, or of the pouch's contents for a pouch; null if unknown. |
string ItemName | Display name of the item, or of the pouch's contents for a pouch. |
string Material | Name of the item's physical material, if it has one. |
int Quantity | How many of the item changed hands. |
string SaveString | The item entity's full save, as a string, or empty if there is no entity. |
UserInfo User | The player who did the action. |
Used in
Members of other types that take, return or hold a InventoryChangeData: