Skip to content

Genshin Imaginarium Theater Models

img_theater

Classes:

__all__ module-attribute

__all__ = ('Act', 'ActCharacter', 'BattleStatCharacter', 'ImgTheater', 'ImgTheaterData', 'TheaterBattleStats', 'TheaterBuff', 'TheaterCharaType', 'TheaterDifficulty', 'TheaterSchedule', 'TheaterStats')

Act pydantic-model

One act in the theater.

Fields:

Validators:

arcana_number pydantic-field

arcana_number: Optional[int] = None

characters pydantic-field

characters: Sequence[ActCharacter]

finish_datetime pydantic-field

finish_datetime: TZDateTime

finish_time pydantic-field

finish_time: int

is_arcana pydantic-field

is_arcana: bool = False

medal_obtained pydantic-field

medal_obtained: bool

mystery_caches pydantic-field

mystery_caches: Sequence[TheaterBuff]

round_id pydantic-field

round_id: int

wondroud_booms pydantic-field

wondroud_booms: Sequence[TheaterBuff]

__parse_datetime pydantic-validator

__parse_datetime(value: Mapping[str, Any]) -> datetime

ActCharacter pydantic-model

A character in an act.

Fields:

level pydantic-field

level: int

type pydantic-field

BattleStatCharacter pydantic-model

Imaginarium theater battle statistic character.

Fields:

Validators:

icon pydantic-field

icon: str

id pydantic-field

id: int

rarity pydantic-field

rarity: int

value pydantic-field

value: int

__intify_value pydantic-validator

__intify_value(value: str) -> int

ImgTheater pydantic-model

Imaginarium theater.

Fields:

datas pydantic-field

unlocked pydantic-field

unlocked: bool

ImgTheaterData pydantic-model

Imaginarium theater data.

Fields:

Validators:

acts pydantic-field

acts: Sequence[Act]

backup_characters pydantic-field

backup_characters: Sequence[ActCharacter]

battle_stats pydantic-field

battle_stats: Optional[TheaterBattleStats] = None

has_data pydantic-field

has_data: bool

has_detail_data pydantic-field

has_detail_data: bool

schedule pydantic-field

schedule: TheaterSchedule

stats pydantic-field

stats: TheaterStats

__unnest_detail pydantic-validator

__unnest_detail(values: dict[str, Any]) -> dict[str, Any]

TheaterBattleStats pydantic-model

Imaginarium theater battle statistics.

Fields:

Validators:

fastest_character_list pydantic-field

fastest_character_list: Sequence[BattleStatCharacter]

max_damage_character pydantic-field

max_damage_character: Optional[BattleStatCharacter] = None

max_defeat_character pydantic-field

max_defeat_character: Optional[BattleStatCharacter] = None

max_take_damage_character pydantic-field

max_take_damage_character: Optional[BattleStatCharacter] = None

total_cast_seconds pydantic-field

total_cast_seconds: int

__none_if_empty pydantic-validator

__none_if_empty(value: dict[str, Any]) -> Any

TheaterBuff pydantic-model

Represents either a 'mystery cache' or a 'wondrous boom'.

Fields:

description pydantic-field

description: str

icon pydantic-field

icon: str

id pydantic-field

id: int

name pydantic-field

name: str

received_audience_support pydantic-field

received_audience_support: bool

Whether external audience support is received.

TheaterCharaType

The type of character in the context of the imaginarium theater gamemode.

Attributes:

NORMAL class-attribute instance-attribute

NORMAL = 1

SUPPORT class-attribute instance-attribute

SUPPORT = 3

TRIAL class-attribute instance-attribute

TRIAL = 2

TheaterDifficulty

The difficulty of the imaginarium theater data.

Attributes:

ARCANA_CHALLENGE class-attribute instance-attribute

ARCANA_CHALLENGE = 5

EASY class-attribute instance-attribute

EASY = 1

HARD class-attribute instance-attribute

HARD = 3

NORMAL class-attribute instance-attribute

NORMAL = 2

UNKNOWN class-attribute instance-attribute

UNKNOWN = 0

VISIONARY class-attribute instance-attribute

VISIONARY = 4

TheaterSchedule pydantic-model

Imaginarium theater schedule.

Fields:

Validators:

end_datetime pydantic-field

end_datetime: TZDateTime

end_time pydantic-field

end_time: int

id pydantic-field

id: int

schedule_type pydantic-field

schedule_type: int

start_datetime pydantic-field

start_datetime: TZDateTime

start_time pydantic-field

start_time: int

__parse_datetime pydantic-validator

__parse_datetime(value: Mapping[str, Any]) -> datetime

TheaterStats pydantic-model

Imaginarium theater stats.

Fields:

audience_support_trigger_num pydantic-field

audience_support_trigger_num: int

The number of external audience support triggers.

best_record pydantic-field

best_record: int

The maximum act the player has reached.

difficulty pydantic-field

difficulty: TheaterDifficulty

fantasia_flowers_used pydantic-field

fantasia_flowers_used: int

The number of Fantasia Flowers used.

heraldry pydantic-field

heraldry: int

medal_num pydantic-field

medal_num: int

The number of medals the player has obtained.

player_assists pydantic-field

player_assists: int

The number of supporting cast characters assisting other players.

star_challenge_stellas pydantic-field

star_challenge_stellas: Sequence[bool]

Whether the player has obtained the medal for each act.