2023-06-09 14:55:51 +00:00
|
|
|
"""Starrail base character model."""
|
2023-05-01 12:50:48 +00:00
|
|
|
from simnet.models.base import APIModel
|
|
|
|
|
|
|
|
|
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 FloorCharacter(StarRailBaseCharacter):
|
|
|
|
"""Character in a floor."""
|
|
|
|
|
|
|
|
level: int
|
|
|
|
|
|
|
|
|
|
|
|
class RogueCharacter(StarRailBaseCharacter):
|
|
|
|
"""Rogue character model."""
|
|
|
|
|
|
|
|
level: int
|
2023-09-06 13:44:34 +00:00
|
|
|
rank: int
|
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
|