Function setMatchResults

  • Updates a match results based on an input.

    Parameters

    • stored: MatchResults

      A reference to what will be updated in the storage.

    • match: {
          opponent1?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; });
          opponent2?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; });
          status?: Status;
      }

      Input of the update.

      • Optional opponent1?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; })

        First opponent of the match.

      • Optional opponent2?: null | ({ id?: Id | null | undefined; position?: number | undefined; forfeit?: boolean | undefined; score?: number | undefined; result?: Result | undefined; })

        Second opponent of the match.

      • Optional status?: Status

        Status of the match.

    • inRoundRobin: boolean

      Indicates whether the match is in a round-robin stage.

    Returns {
        resultChanged: boolean;
        statusChanged: boolean;
    }

    • resultChanged: boolean
    • statusChanged: boolean

Generated using TypeDoc