equip

open fun equip(itemId: Int): Boolean

Equips an item from the inventory with the given itemId.

Return

True if the item click was successful. False otherwise.


open fun equip(itemName: String): Boolean

Equips an item from the inventory with the given itemName.

Return

True if the item click was successful. False otherwise.


open fun equip(item: InventoryItem): Boolean

Equips the given InventoryItem.

Return

True if the item click was successful. False otherwise.