2023-06-09 14:55:51 +00:00
|
|
|
"""Starrail base character model."""
|
2024-03-29 13:48:07 +00:00
|
|
|
|
2024-01-23 09:51:22 +00:00
|
|
|
from enum import Enum
|
|
|
|
|
2023-05-01 12:50:48 +00:00
|
|
|
from simnet.models.base import APIModel
|
|
|
|
|
|
|
|
|
2024-01-23 09:51:22 +00:00
|
|
|
class StarRailDestiny(str, Enum):
|
|
|
|
"""命途"""
|
|
|
|
|
|
|
|
HuiMie = "毁灭"
|
|
|
|
ZhiShi = "智识"
|
|
|
|
XunLie = "巡猎"
|
|
|
|
CunHu = "存护"
|
|
|
|
FengRao = "丰饶"
|
|
|
|
TongXie = "同谐"
|
|
|
|
XuWu = "虚无"
|
|
|
|
|
|
|
|
|
|
|
|
class StarRailElement(str, Enum):
|
|
|
|
"""属性"""
|
|
|
|
|
|
|
|
Physical = "物理"
|
|
|
|
Pyro = "火"
|
|
|
|
Anemo = "风"
|
|
|
|
Electro = "雷"
|
|
|
|
Cryo = "冰"
|
|
|
|
Nombre = "虚数"
|
|
|
|
Quantum = "量子"
|
|
|
|
Null = "NULL"
|
|
|
|
"""无"""
|
|
|
|
|
|
|
|
|
2023-06-09 14:55:51 +00:00
|
|
|
class StarRailBaseCharacter(APIModel):
|
|
|
|
"""Base character model."""
|
2023-05-01 12:50:48 +00:00
|
|
|
|
|
|
|
id: int
|
|
|
|
element: str
|
|
|
|
rarity: int
|
|
|
|
icon: str
|
2023-06-09 14:55:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
class StarRailPartialCharacter(StarRailBaseCharacter):
|
|
|
|
"""Character without any equipment."""
|
|
|
|
|
|
|
|
name: str
|
|
|
|
level: int
|
|
|
|
rank: int
|
|
|
|
|
|
|
|
|
|
|
|
class RogueCharacter(StarRailBaseCharacter):
|
|
|
|
"""Rogue character model."""
|
|
|
|
|
|
|
|
level: int
|
2023-09-06 13:44:34 +00:00
|
|
|
rank: int
|
2023-12-07 09:14:30 +00:00
|
|
|
is_trial: bool = False
|
2023-07-18 13:14:16 +00:00
|
|
|
|
|
|
|
|
2023-07-21 09:11:30 +00:00
|
|
|
class ActivityCharacter(StarRailBaseCharacter):
|
2023-07-18 13:14:16 +00:00
|
|
|
"""Combat character model."""
|
|
|
|
|
|
|
|
level: int
|
2023-10-27 13:36:43 +00:00
|
|
|
is_trial: bool = False
|