Protected Readonly storagePrivate adjustProtected applyPrivate applyProtected applyApplies a SetNextOpponent function to matches following the current match.
nextMatches[0] is assumed to be next match for the winner of the current match.nextMatches[1] is assumed to be next match for the loser of the current match.The SetNextOpponent function.
The current match.
Location of the current match.
Number of the current round.
Count of rounds.
The matches following the current match.
Optional winnerSide: SideSide of the winner in the current match.
Optional Protected archiveProtected confirmProtected findFinds a match in a given group. The match must have the given number in a round of which the number in group is given.
Example: In group of id 1, give me the 4th match in the 3rd round.
ID of the group.
Number of the round in its parent group.
Number of the match in its parent round.
Protected findFinds a match game based on its id or based on the combination of its parent_id and number.
Values to change in a match game.
Optional id?: IdID of the match game.
Optional number?: numberThe number of the match game in its parent match.
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 parent_ID of the parent match.
Optional stage_ID of the parent stage.
Optional status?: StatusStatus of the match.
Protected getProtected getGets the match(es) where the opponents of the current match will go just after.
The current match.
Location of the current match.
The parent stage.
The number of the current round.
Count of rounds.
Protected getProtected getGets the matches leading to the given match.
The current match.
Location of the current match.
The parent stage.
Number of the round.
Protected getGets the positional information (number in group and total number of rounds in group) of a round based on its id.
ID of the round.
Protected getProtected getUpdates partial information of a match. Its id must be given.
This will update related matches accordingly.
Values to change in a match.
Updates child count of all matches of a given level.
The level at which to act.
ID of the chosen level.
The target child count.
Updates partial information of a match game. Its id must be given.
This will update the parent match accordingly.
Values to change in a match game.
Protected propagateProtected resetUpdates the seeding of a stage (with a list of IDs).
ID of the stage.
The new seeding, containing only IDs.
Whether to keep the same size as before for the stage. Default: false.
Private updateProtected updateUpdates a match based on a partial match.
A reference to what will be updated in the storage.
Input of the update.
Optional child_The count of match games this match has. Can be 0 if it's a simple match, or a positive number for "Best Of" matches.
Optional group_ID of the parent group.
Optional id?: IdID of the match.
Optional number?: numberThe number of the match in its round.
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 round_ID of the parent round.
Optional stage_ID of the parent stage.
Optional status?: StatusStatus of the match.
Optional force: booleanWhether to force update locked matches.
Optional Protected updateUpdates a match game based on a partial match game.
A reference to what will be updated in the storage.
Input of the update.
Optional id?: IdID of the match game.
Optional number?: numberThe number of the match game in its parent match.
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 parent_ID of the parent match.
Optional stage_ID of the parent stage.
Optional status?: StatusStatus of the match.
Protected updateUpdates the match(es) following the current match based on this match results.
Input of the update.
Location of the current match.
The parent stage.
Number of the round.
Count of rounds.
Protected updateProtected updateUpdates the match(es) leading to the current match based on this match results.
Input of the update.
Location of the current match.
The parent stage.
Number of the round.
Protected updateUpdates the matches related (previous and next) to a match.
A match.
Whether to update the previous matches.
Whether to update the next matches.
Private updatePrivate updateProtected updateUpdates or resets the seeding of a stage.
ID of the stage.
A new seeding or null to reset the existing seeding.
Optional seeding?: null | SeedingCan contain names, IDs or BYEs.
Optional seedingCan only contain IDs or BYEs.
Whether to keep the same size as before for the stage.
Private updateStatic Protected assertThrows an error if a match is locked and the new seeding will change this match's participants.
The matches stored in the database.
The slots to check from the new seeding.
Static Protected getReturns the good seeding ordering based on the stage's type.
The type of the stage.
A reference to a Create instance.
Generated using TypeDoc
Creates an instance of a Storage getter.