Skip to main content

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.

Constructors​

MemberWhat it is
InventoryChangeData()Creates an InventoryChangeData with default values.

Fields​

MemberWhat it is
InventoryChangeType ChangeTypeWhat happened to the item, such as a pickup or drop (InventoryChangeType).
UserInfo DestinationUserThe player who received the item, when it went to another player; otherwise null.
InventoryType InventoryTypeWhere the item went or came from, such as the world or a player's inventory.
uint? ItemHashPrefab hash of the item, or of the pouch's contents for a pouch; null if unknown.
string ItemNameDisplay name of the item, or of the pouch's contents for a pouch.
string MaterialName of the item's physical material, if it has one.
int QuantityHow many of the item changed hands.
string SaveStringThe item entity's full save, as a string, or empty if there is no entity.
UserInfo UserThe player who did the action.

Used in​

Members of other types that take, return or hold a InventoryChangeData: