Skip to content

InventorySizes

object InventorySizes
Example
fun isSlotIn(bag: InventoryDefinition, slot: Int): Boolean {
val size = InventorySizes.of(bag.id)
return slot in 0 until size
}
fun of(inventoryId: Int): Int