State: {
    conquestEndTime: number | null;
    conquestStartTime: number | null;
    requiredVictoryTowns: number;
    resistanceStartTime: number | null;
    warId: `${string}-${string}-${string}-${string}-${string}`;
    warNumber: number;
    winner: Api.Team;
}

The current state of the war.

Type declaration

  • conquestEndTime: number | null

    UNIX timestamp in milliseconds of when conquest ended.

  • conquestStartTime: number | null

    UNIX timestamp in milliseconds of when conquest started.

  • requiredVictoryTowns: number

    Number of victory towns required to win the war.

  • resistanceStartTime: number | null

    UNIX timestamp in milliseconds of when the resistance phase started.

  • warId: `${string}-${string}-${string}-${string}-${string}`

    Unique ID for the war.

  • warNumber: number

    The current war number for the shard.

  • winner: Api.Team

    The team that has won the war.