DropResult

data class DropResult(val addedToInv: Int = 0, val droppedToWorld: Int = 0, val dropLocation: Location? = null, val droppedItems: Set<Item> = emptySet())

Represents the result of a drop operation.

Constructors

Link copied to clipboard
constructor(addedToInv: Int = 0, droppedToWorld: Int = 0, dropLocation: Location? = null, droppedItems: Set<Item> = emptySet())

Properties

Link copied to clipboard
val addedToInv: Int = 0

Amount of items that were added to the inventory

Link copied to clipboard
val dropLocation: Location? = null

The location where the items were dropped. Will be null if all items were added to the inventory

Link copied to clipboard
val droppedItems: Set<Item>

The items that were dropped to the world

Link copied to clipboard

Amount of items that were dropped to the world because the inventory was full