The implementation of Storage.
The stage to create.
Private
currentPrivate
enablePrivate
Readonly
seedPrivate
stagePrivate
storagePrivate
updatePrivate
createCreates a consolation final for the semi final losers of an upper bracket (single or double elimination).
ID of the stage.
The semi final losers who will play the consolation final.
Optional overrides.
Private
createCreates a double elimination stage.
ID of the stage.
A list of slots.
Private
createCreates a double elimination stage with skip first round option.
ID of the stage.
A list of slots.
Private
createCreates a grand final (none, simple or double) for winners of both bracket in a double elimination stage.
ID of the stage.
The winner of the winner bracket.
The winner of the loser bracket.
Private
createCreates a lower bracket, alternating between major and minor rounds.
ID of the parent stage.
Number of the group in the stage.
One list of losers per upper bracket round.
Private
createCreates a match, possibly with match games.
childCount
is 0, then there is no children. The score of the match is directly its intrinsic score.childCount
is greater than 0, then the score of the match will automatically be calculated based on its child games.ID of the parent stage.
ID of the parent group.
ID of the parent round.
Number in the round.
The two opponents matching against each other.
Child count for this match (number of games).
Private
createCreates a round, which contain matches.
ID of the parent stage.
ID of the parent group.
Number in the group.
Duel/match count.
A list of duels.
Optionally give the starting point for the match numbers. Starts at 1 by default.
Private
createCreates a round-robin group.
This will make as many rounds as needed to let each participant match every other once.
ID of the parent stage.
Number of the group in the stage.
A list of slots.
Private
createPrivate
createCreates a standard bracket, which is the only one in single elimination and the upper one in double elimination.
This will make as many rounds as needed to end with one winner.
ID of the parent stage.
Number of the group in the stage.
A list of slots.
Private
createCreates a bracket with rounds that only have 1 match each. Used for finals.
ID of the parent stage.
Number of the group in the stage.
A list of duels.
Optional overrides.
Private
doublePrivate
ensurePrivate
getGets the duels for the current round based on the previous one. No ordering is done, it must be done beforehand for the first round.
Duels of the previous round.
Count of duels (matches) in the current round.
Gets the duels for a major round in the LB. No ordering is done, it must be done beforehand for the first round.
Duels of the previous round.
Count of duels (matches) in the current round.
Indicates that the round is a major round in the LB.
Gets the duels for a minor round in the LB. Ordering is done.
Duels of the previous round.
Count of duels (matches) in the current round.
Indicates that the round is a minor round in the LB.
The losers going from the WB.
Optional
method: SeedOrderingThe ordering method to apply to the losers.
Private
getPrivate
getPrivate
getSafely gets a minor ordering for the lower bracket by its index.
Number of participants in the stage.
Index of the minor round.
Number of minor rounds.
Private
getSafely gets an ordering by its index in the stage input settings.
Index of the ordering.
A value indicating if the method should be a group method or not.
The default method to use if not given.
Private
getGets the duels in groups for a round-robin stage.
Returns a list of slots.
seeding
was given, inserts them in the storage.size
was given, only returns a list of empty slots.Optional
positions: number[]An optional list of positions (seeds) for a manual ordering.
Private
getReturns the list of slots with a seeding containing IDs. No database mutation.
The seeding (IDs).
Optional
positions: number[]An optional list of positions (seeds) for a manual ordering.
Private
getReturns the list of slots with a seeding containing names. Participants may be added to database.
The seeding (names).
Optional
positions: number[]An optional list of positions (seeds) for a manual ordering.
Private
getPrivate
insertInserts a group or finds an existing one.
The group to insert.
Private
insertInserts a match or updates an existing one.
The match to insert.
An existing match corresponding to the current one.
Private
insertInserts a match game or finds an existing one (and updates it).
The match game to insert.
Private
insertInserts a round or finds an existing one.
The round to insert.
Private
insertInserts a stage or finds an existing one.
The stage to insert.
Private
registerInserts missing participants.
The list of participants to process.
Private
roundPrivate
singleGenerated using TypeDoc
Creates an instance of StageCreator, which will handle the creation of the stage.