State: {
    conquestTimes: {
        end: undefined;
        start: undefined;
    } | {
        end: Date | undefined;
        start: Date;
    };
    id: `${string}-${string}-${string}-${string}-${string}`;
    number: number;
    requiredVictoryTownCount: number;
    resistanceTimes: {
        start: Date | undefined;
    };
    winner: Team | undefined;
}

The current state of the war.

Type declaration

  • conquestTimes: {
        end: undefined;
        start: undefined;
    } | {
        end: Date | undefined;
        start: Date;
    }

    Times for when conquest started and ended.

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

    Unique ID for the war.

  • number: number

    The current war number for the shard.

  • requiredVictoryTownCount: number

    Number of victory towns required to win the war.

  • resistanceTimes: {
        start: Date | undefined;
    }

    Times for when the resistance phase started and ended.

    • start: Date | undefined

      When the resistance phase started.

  • winner: Team | undefined

    The team that has won the war.