Skip to content

Commit

Permalink
✨ Support starrail activity - SpaceZoo
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Dec 30, 2023
1 parent 8a1ac17 commit baae8d5
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions simnet/models/starrail/chronicle/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,30 @@ class StarRailBoxingShow(StarRailActivityBase):
info: StarRailBoxingShowInfo


class StarRailSpaceZooFeature(APIModel):
"""Space Zoo Feature"""

cur: int
max: int
channel: str
name_mi18n: str


class StarRailSpaceZooInfo(APIModel):
"""Space Zoo Info"""

cur_xyzw: int
max_xyzw: int
features: List[StarRailSpaceZooFeature]
level: int


class StarRailSpaceZoo(StarRailActivityBase):
"""Space Zoo Activity"""

info: StarRailSpaceZooInfo


class StarRailActivity(APIModel):
"""Starrail chronicle activity."""

Expand Down Expand Up @@ -329,3 +353,8 @@ def fox_story(self) -> StarRailFoxStory:
def boxing_show(self) -> StarRailBoxingShow:
"""Get the boxing show activity."""
return StarRailBoxingShow(**self.find_activity("boxing_show"))

@property
def space_zoo(self) -> StarRailSpaceZoo:
"""Get the space zoo activity."""
return StarRailSpaceZoo(**self.find_activity("space_zoo"))

0 comments on commit baae8d5

Please sign in to comment.