Protected
Readonly
storageReturns the matches that can currently be played in parallel. If the stage doesn't contain any, an empty array is returned.
Note:
ID of the stage.
If you don't know the stage id, you can first get the current stage.
const tournamentId = 3;
const currentStage = await manager.get.currentStage(tournamentId);
const currentMatches = await manager.get.currentMatches(currentStage.id);
Returns the round that is not completed yet, because of uncompleted matches.
If all matches are completed in this stage of a tournament, there is no "current round", so null
is returned.
Note: The consolation final of single elimination and the grand final of double elimination will be in a different Group
.
ID of the stage.
If you don't know the stage id, you can first get the current stage.
const tournamentId = 3;
const currentStage = await manager.get.currentStage(tournamentId);
const currentRound = await manager.get.currentRound(currentStage.id);
Returns the stage that is not completed yet, because of uncompleted matches.
If all matches are completed in this tournament, there is no "current stage", so null
is returned.
ID of the tournament.
Private
doubleReturns the final standings of a double elimination stage.
ID of the stage.
Private
eliminationReturns the seeding of an elimination stage.
The stage.
Returns the final standings of a stage.
ID of the stage.
Protected
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
getPrivate
getReturns only the data specific to the given stage (without the participants).
ID of the stage.
Protected
getPrivate
roundReturns the seeding of a round-robin stage.
The stage.
Returns the seeding of a stage.
ID of the stage.
Private
singleReturns the final standings of a single elimination stage.
ID of the stage.
Returns the data needed to display a stage.
ID of the stage.
Returns the data needed to display a whole tournament with all its stages.
ID of the tournament.
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.