@my-swu/simulator-client / LimitedTournamentView
Interface: LimitedTournamentView
Defined in: packages/ts-sdk/src/generated/types/common.ts:3369
Public tournament state attached to a limited lobby snapshot.
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
console.log(limitedTournamentView)Properties
bestOf
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { bestOf } = limitedTournamentView
console.log(bestOf)bestOf:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:3373
Games per match (1 or 3).
currentRound
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { currentRound } = limitedTournamentView
console.log(currentRound)currentRound:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:3377
Latest started round number; 0 before the first round.
phase
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { phase } = limitedTournamentView
console.log(phase)phase:
LimitedTournamentPhase
Defined in: packages/ts-sdk/src/generated/types/common.ts:3381
Lobby-level tournament phase.
roundDeadlineAtMs?
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { roundDeadlineAtMs } = limitedTournamentView
console.log(roundDeadlineAtMs)
optionalroundDeadlineAtMs?:number|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:3385
Server deadline for automatically starting the next round.
rounds
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { rounds } = limitedTournamentView
console.log(rounds)rounds:
LimitedTournamentRoundView[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:3389
Started rounds in order.
standings
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { standings } = limitedTournamentView
console.log(standings)standings:
LimitedTournamentStandingView[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:3393
Current standings, best first.
structure
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { structure } = limitedTournamentView
console.log(structure)structure:
LimitedTournamentStructure
Defined in: packages/ts-sdk/src/generated/types/common.ts:3397
Round structure used to pair players.
totalRounds
Example:
import type { LimitedTournamentView } from '@my-swu/simulator-client'
const limitedTournamentView: LimitedTournamentView = {
"structure": {
"type": "swiss",
},
"bestOf": 0,
"phase": "building",
"currentRound": 0,
"totalRounds": 0,
"rounds": [],
"standings": [],
}
const { totalRounds } = limitedTournamentView
console.log(totalRounds)totalRounds:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:3401
Planned number of rounds.
