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
Get a Faction id from its code.
examples
Examples
iex> Riot.LoR.Faction.fetch_by_code!("DE")
{1, 0, "DE"}
Get a Faction code from its id.
examples
Examples
iex> Riot.LoR.Faction.fetch_by_id!(0)
{1, 0, "DE"}
@spec max_version() :: non_neg_integer()
Get the maximum version supported.
examples
Examples
iex> Riot.LoR.Faction.max_version()
4
@spec min_version() :: non_neg_integer()
Get the minimum version supported.
examples
Examples
iex> Riot.LoR.Faction.min_version()
1