Creates an instance of InventorySource.
The source type of the inventory action.
Optional
containerId: null | ContainerIdThe container id of the inventory source.
Optional
bitFlags: null | numberThe bit flags of the inventory source.
Readonly
bitThe bit flags of the inventory source. If the source type is not GlobalInteraction, then this value will not be present.
Readonly
containerThe container id of the inventory source. If the source type is not ContainerInventory, then this value will not be present.
Readonly
typeThe source type of the inventory action.
Static
readRead a value from the stream.
The BinaryStream to read from.
The value read from the stream.
Static
writeWrite a value to the stream.
The BinaryStream to write to.
The value to write.
Represents the source of an inventory action.