Skip to content

TFT Galaxies

Antoine CLOP edited this page Aug 20, 2020 · 2 revisions

TFT Galaxies

The following endpoints provide all details about galaxies in Team Fight Tactics. It also includes icons for each one of them.

Methods

Galaxy (by TFTGalaxyId)

Parameters

  • 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

Usage example

let galaxy = league.tftAPI.getGalaxy(byId: TFTGalaxyId("TFT3_GameVariation_FreeRerolls"))
if let galaxy = galaxy {
    print("Success!")
} else {
    print("Galaxy not found")
}

Galaxy (by Name)

Parameters

  • 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

Usage example

let galaxy = league.tftAPI.getGalaxy(byName: "Superdense Galaxy")
if let galaxy = galaxy {
    print("Success!")
} else {
    print("Galaxy not found")
}

AllGalaxies

Parameters

The function will run synchronously and returns all galaxies of TFT in a TFTGalaxy Array.

Usage example

let galaxies = league.tftAPI.getAllGalaxies()
Clone this wiki locally