-
Notifications
You must be signed in to change notification settings - Fork 13
TFT Items
Antoine CLOP edited this page Aug 20, 2020
·
2 revisions
The following endpoints provide all details about items in Team Fight Tactics. It also includes icons for each one of them.
Item (by TFTItemId)
- TFTItemId: The unique identifier for a TFT Item.
The function will run synchronously and returns a TFTItem if found, nil otherwise. You can then access the icon of this item with the property icon
let item = league.tftAPI.getItem(byId: TFTItemId(1))
if let item = item {
print("Success!")
} else {
print("Item not found")
}
- ByName: The name of an item.
The function will run synchronously and returns a TFTItem if found, nil otherwise. You can then access the icon of this item with the property icon
let item = league.tftAPI.getItem(byName: "Spatula")
if let item = item {
print("Success!")
} else {
print("Item not found")
}
The function will run synchronously and returns all items of TFT in a TFTItem Array.
let items = league.tftAPI.getItems()