WarEraAPI.types.battle module

class WarEraAPI.types.battle.Battle(_id: str, type: Literal['war', 'resistance', 'tournament'], rounds: list[str], roundsHistory: list[Literal['defender', 'attacker']], isActive: bool, roundsToWin: int, createdAt: datetime.datetime, updatedAt: datetime.datetime, currentRound: str, defender: WarEraAPI.types.constants.BattleParticipant, attacker: WarEraAPI.types.constants.BattleParticipant, stats: dict, war: str | None = None, isBigBattle: bool | None = None, tournament: str | None = None, tournamentRoundNumber: int | None = None)

Bases: object

attacker: BattleParticipant
createdAt: datetime
currentRound: str
defender: BattleParticipant
isActive: bool
isBigBattle: bool | None = None
rounds: list[str]
roundsHistory: list[Literal['defender', 'attacker']]
roundsToWin: int
stats: dict
tournament: str | None = None
tournamentRoundNumber: int | None = None
type: Literal['war', 'resistance', 'tournament']
updatedAt: datetime
war: str | None = None