Star Rail Events Models
events
Classes:
-
ChallengeStatus–Challenge status enum.
-
ChallengeType–Challenge type enum.
-
EventWarp–Event warp model.
-
EventWarpCharacter–Event warp character model.
-
EventWarpLightCone–Event warp light cone model.
-
HSRBaseEventItem–Base event item model.
-
HSRChallenge–HSR challenge model.
-
HSREvent–HSR event model.
-
HSREventCalendar–HSR event calendar model.
-
HSREventReward–HSR event reward model.
-
HSREventStatus–Event status enum.
-
HSREventTimeType–Event time type enum.
-
HSREventType–Event type enum.
-
TimeInfo–Time info model.
__all__
module-attribute
__all__ = ('ChallengeStatus', 'ChallengeType', 'EventWarp', 'EventWarpCharacter', 'EventWarpLightCone', 'HSRBaseEventItem', 'HSRChallenge', 'HSREvent', 'HSREventCalendar', 'HSREventReward', 'HSREventStatus', 'HSREventTimeType', 'HSREventType', 'TimeInfo')
ChallengeStatus
ChallengeType
Challenge type enum.
Attributes:
-
ANOMALY_ARBITRATION– -
APC_SHADOW–Apocalyptic shadow.
-
MOC–Memory of Chaos.
-
PURE_FICTION–
EventWarp
pydantic-model
Event warp model.
Fields:
-
time_info(Optional[TimeInfo]) -
name(str) -
type(str) -
characters(Sequence[EventWarpCharacter]) -
light_cones(Sequence[EventWarpLightCone]) -
is_after_version(bool) -
version(str) -
id(int)
Validators:
is_after_version
pydantic-field
is_after_version: bool
Whether the event happens after last version's update.
EventWarpCharacter
pydantic-model
EventWarpLightCone
pydantic-model
HSRBaseEvent
pydantic-model
HSRBaseEventItem
pydantic-model
Base event item model.
Fields:
HSRChallenge
pydantic-model
HSR challenge model.
Fields:
-
time_info(Optional[TimeInfo]) -
id(int) -
name(str) -
type(Union[ChallengeType, str]) -
status(Union[ChallengeStatus, str]) -
rewards(Sequence[HSREventReward]) -
special_reward(Optional[HSREventReward]) -
total_progress(int) -
current_progress(int) -
show_text(str)
Validators:
-
__validate_time_info→time_info -
__validate_special_reward→special_reward -
__validate_type→type -
__validate_status→status
__validate_special_reward
pydantic-validator
__validate_special_reward(v: Optional[HSREventReward]) -> Optional[HSREventReward]
HSREvent
pydantic-model
HSR event model.
Fields:
-
time_info(Optional[TimeInfo]) -
id(int) -
version(str) -
name(str) -
description(str) -
type(Union[HSREventType, str]) -
time_type(Union[HSREventTimeType, str]) -
status(Union[HSREventStatus, str]) -
rewards(Sequence[HSREventReward]) -
total_progress(int) -
current_progress(int) -
special_reward(Optional[HSREventReward]) -
is_after_version(bool) -
all_finished(bool) -
show_text(str) -
strategy(str) -
multiple_drop_type(int) -
multiple_drop_type_list(list[int]) -
count_refresh_type(int) -
count_value(int) -
drop_multiple(int) -
panel_id(int) -
sort_weight(int)
Validators:
-
__validate_time_info→time_info -
__validate_special_reward→special_reward -
__validate_type→type -
__validate_time_type→time_type -
__validate_status→status -
__format_name→name -
__format_description→description
is_after_version
pydantic-field
is_after_version: bool
Whether the event happens after last version's update.
__validate_special_reward
pydantic-validator
__validate_special_reward(v: HSREventReward) -> Optional[HSREventReward]
__validate_time_type
pydantic-validator
__validate_time_type(v: str) -> Union[HSREventTimeType, str]
HSREventCalendar
pydantic-model
HSR event calendar model.
Fields:
-
character_warps(Sequence[EventWarp]) -
light_cone_warps(Sequence[EventWarp]) -
events(Sequence[HSREvent]) -
challenges(Sequence[HSRChallenge]) -
cur_game_version(str) -
now(TZDateTime)
HSREventReward
pydantic-model
HSREventStatus
Event status enum.
Attributes:
-
DOUBLE_REWARDS_LOCKED– -
DOUBLE_REWARD_ACT_STATUS_PROGRESS– -
DOUBLE_REWARD_ACT_STATUS_UNOPENED– -
OTHER_ACT_STATUS_FINISH– -
OTHER_IN_PROGRESS– -
OTHER_LOCKED– -
SIGN_IN_UNCLAIMED– -
SIGN_STATUS_FINISH– -
SIGN_STATUS_SIGNED_TODAY– -
SIGN_STATUS_UNCLAIMED– -
SIGN_STATUS_UNSIGNED_TODAY–
DOUBLE_REWARDS_LOCKED
class-attribute
instance-attribute
DOUBLE_REWARD_ACT_STATUS_PROGRESS
class-attribute
instance-attribute
DOUBLE_REWARD_ACT_STATUS_UNOPENED
class-attribute
instance-attribute
OTHER_ACT_STATUS_FINISH
class-attribute
instance-attribute
SIGN_STATUS_SIGNED_TODAY
class-attribute
instance-attribute
SIGN_STATUS_UNCLAIMED
class-attribute
instance-attribute
HSREventTimeType
HSREventType
Event type enum.
Attributes:
-
DOUBLE_REWARDS–Plannar Fissure, Garden of Plenty, etc.
-
OTHER– -
SIGN_IN–Daily sign-in event.