SIMNet/simnet/models/starrail/character.py
2024-01-23 17:51:22 +08:00

63 lines
1.0 KiB
Python

"""Starrail base character model."""
from enum import Enum
from simnet.models.base import APIModel
class StarRailDestiny(str, Enum):
"""命途"""
HuiMie = "毁灭"
ZhiShi = "智识"
XunLie = "巡猎"
CunHu = "存护"
FengRao = "丰饶"
TongXie = "同谐"
XuWu = "虚无"
class StarRailElement(str, Enum):
"""属性"""
Physical = "物理"
Pyro = ""
Anemo = ""
Electro = ""
Cryo = ""
Nombre = "虚数"
Quantum = "量子"
Null = "NULL"
""""""
class StarRailBaseCharacter(APIModel):
"""Base character model."""
id: int
element: str
rarity: int
icon: str
class StarRailPartialCharacter(StarRailBaseCharacter):
"""Character without any equipment."""
name: str
level: int
rank: int
class RogueCharacter(StarRailBaseCharacter):
"""Rogue character model."""
level: int
rank: int
is_trial: bool = False
class ActivityCharacter(StarRailBaseCharacter):
"""Combat character model."""
level: int
is_trial: bool = False