-
Notifications
You must be signed in to change notification settings - Fork 13
TFT Galaxies
Antoine CLOP edited this page Aug 20, 2020
·
2 revisions
The following endpoints provide all details about galaxies in Team Fight Tactics. It also includes icons for each one of them.
- Galaxy(byId: TFTGalaxyId) -> TFTGalaxy?
- Galaxy(byName: String) -> TFTGalaxy?
- AllGalaxies() -> [TFTGalaxy]
Galaxy (by TFTGalaxyId)
- TFTGalaxyId: The unique identifier for a TFT Galaxy.
The function will run synchronously and returns a TFTGalaxy if found, nil otherwise. You can then access the icon of this galaxy with the property icon
let galaxy = league.tftAPI.getGalaxy(byId: TFTGalaxyId("TFT3_GameVariation_FreeRerolls"))
if let galaxy = galaxy {
print("Success!")
} else {
print("Galaxy not found")
}
- ByName: The name of a galaxy.
The function will run synchronously and returns a TFTGalaxy if found, nil otherwise. You can then access the icon of this galaxy with the property icon
let galaxy = league.tftAPI.getGalaxy(byName: "Superdense Galaxy")
if let galaxy = galaxy {
print("Success!")
} else {
print("Galaxy not found")
}
The function will run synchronously and returns all galaxies of TFT in a TFTGalaxy Array.
let galaxies = league.tftAPI.getAllGalaxies()