View Source Riot.LoR.Faction (Riot LoR v1.0.0)

Static support for supported LoR Factions.

Supported Factions are hard-coded into to the module. Through the functions you can fetch information by id, code, etc.

Link to this section Summary

Functions

Get a Faction id from its code.

Get a Faction code from its id.

Get the maximum version supported.

Get the minimum version supported.

Link to this section Types

@type t() :: {version :: non_neg_integer(), id :: non_neg_integer(), code :: binary()}

Link to this section Functions

Link to this function

fetch_by_code!(code)

View Source (since 1.0.0)
@spec fetch_by_code!(binary()) :: t()

Get a Faction id from its code.

examples

Examples

iex> Riot.LoR.Faction.fetch_by_code!("DE")
{1, 0, "DE"}
Link to this function

fetch_by_id!(id)

View Source (since 1.0.0)
@spec fetch_by_id!(integer()) :: t()

Get a Faction code from its id.

examples

Examples

iex> Riot.LoR.Faction.fetch_by_id!(0)
{1, 0, "DE"}
Link to this function

max_version()

View Source (since 1.0.0)
@spec max_version() :: non_neg_integer()

Get the maximum version supported.

examples

Examples

iex> Riot.LoR.Faction.max_version()
4
Link to this function

min_version()

View Source (since 1.0.0)
@spec min_version() :: non_neg_integer()

Get the minimum version supported.

examples

Examples

iex> Riot.LoR.Faction.min_version()
1