SIMNet/simnet/models/starrail/character.py

63 lines
1.0 KiB
Python
Raw Normal View History

2023-06-09 14:55:51 +00:00
"""Starrail base character model."""
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
rank: int
is_trial: bool = False
class ActivityCharacter(StarRailBaseCharacter):
"""Combat character model."""
level: int
is_trial: bool = False