SIMNet/simnet/models/starrail/character.py

40 lines
686 B
Python
Raw Normal View History

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
rank: int
class ActivityCharacter(StarRailBaseCharacter):
"""Combat character model."""
level: int
is_trial: bool = False