Module genshin.utility.uid
Utility functions related to genshin.
Functions
def create_short_lang_code(lang: str) ‑> str
-
Create an alternative short lang code.
def get_prod_game_biz(region: Region, game: Game) ‑> str
-
Get the game_biz value corresponding to a game and region.
def recognize_game(uid: int, region: Region) ‑> Optional[Game]
-
Recognize the game of a uid.
def recognize_genshin_server(uid: int) ‑> str
-
Recognize which server a Genshin UID is from.
def recognize_honkai_server(uid: int) ‑> str
-
Recognizes which server a Honkai UID is from.
def recognize_region(uid: int, game: Game) ‑> Optional[Region]
-
Recognize the region of a uid.
def recognize_server(uid: int, game: Game) ‑> str
-
Recognizes which server a UID is from.
def recognize_starrail_server(uid: int) ‑> str
-
Recognize which server a Star Rail UID is from.
def recognize_zzz_server(uid: int) ‑> str
-
Recognize which server a Zenless Zone Zero UID is from.