osu!ex v0.2.0 OsuEx.API.Enums View Source
Utility functions for handling enum values.
Link to this section Summary
Functions
Translates the approved status enum to an atom and vice versa
Translates the genre enum to an atom and vice versa
Translates the language enum to an atom and vice versa
Translates the game mode enum to an atom and vice versa
Translates the scoring type enum to an atom and vice versa
Translates the team enum to an atom and vice versa
Translates the team type enum to an atom and vice versa
Link to this section Functions
approved(arg1) View Source
Translates the approved status enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.approved(-2)
:graveyard
iex> OsuEx.API.Enums.approved(:wip)
-1
genre(arg1) View Source
Translates the genre enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.genre(0)
:any
iex> OsuEx.API.Enums.genre(:unspecified)
1
language(arg1) View Source
Translates the language enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.language(0)
:any
iex> OsuEx.API.Enums.language(:other)
1
mode(arg1) View Source
Translates the game mode enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.mode(0)
:standard
iex> OsuEx.API.Enums.mode(:taiko)
1
scoring_type(arg1) View Source
Translates the scoring type enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.scoring_type(0)
:score
iex> OsuEx.API.Enums.scoring_type(:accuracy)
1
team(arg1) View Source
Translates the team enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.team(1)
:blue
iex> OsuEx.API.Enums.team(:red)
2
team_type(arg1) View Source
Translates the team type enum to an atom and vice versa.
Examples
iex> OsuEx.API.Enums.team_type(0)
:head_to_head
iex> OsuEx.API.Enums.team_type(:tag_coop)
1