Creates an instance of InventorySource.
The source type of the inventory action.
OptionalcontainerId: null | ContainerIdThe container id of the inventory source.
OptionalbitFlags: null | numberThe bit flags of the inventory source.
ReadonlybitThe bit flags of the inventory source. If the source type is not GlobalInteraction, then this value will not be present.
ReadonlycontainerThe container id of the inventory source. If the source type is not ContainerInventory, then this value will not be present.
ReadonlytypeThe source type of the inventory action.
StaticreadRead a value from the stream.
The BinaryStream to read from.
The value read from the stream.
StaticwriteWrite a value to the stream.
The BinaryStream to write to.
The value to write.
Represents the source of an inventory action.