@my-swu/simulator-client / TournamentRoomSnapshot
Interface: TournamentRoomSnapshot
Defined in: packages/ts-sdk/src/generated/types/common.ts:6232
Public tournament room snapshot.
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
console.log(tournamentRoomSnapshot)Properties
activity
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { activity } = tournamentRoomSnapshot
console.log(activity)activity:
RoomPlayerPresenceEvent[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:6236
Recent human-player connection activity for the tournament room.
bestOfMatches
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { bestOfMatches } = tournamentRoomSnapshot
console.log(bestOfMatches)bestOfMatches:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:6237
chat
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { chat } = tournamentRoomSnapshot
console.log(chat)chat:
LobbyChatMessage[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:6238
draftRounds
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { draftRounds } = tournamentRoomSnapshot
console.log(draftRounds)draftRounds:
DraftRoundConfig[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:6239
event?
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { event: tournamentRoomSnapshotEvent } = tournamentRoomSnapshot
console.log(tournamentRoomSnapshotEvent)
optionalevent?:LimitedEventSnapshot|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6240
eventKind
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { eventKind } = tournamentRoomSnapshot
console.log(eventKind)eventKind:
LimitedEventKind
Defined in: packages/ts-sdk/src/generated/types/common.ts:6241
hostPlayerId
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { hostPlayerId } = tournamentRoomSnapshot
console.log(hostPlayerId)hostPlayerId:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:6242
matchSeed?
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { matchSeed } = tournamentRoomSnapshot
console.log(matchSeed)
optionalmatchSeed?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6246
Fixed duel match seed when configured.
packSeed?
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { packSeed } = tournamentRoomSnapshot
console.log(packSeed)
optionalpackSeed?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6250
Fixed limited pack/leader seed when configured.
players
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { players } = tournamentRoomSnapshot
console.log(players)players:
TournamentRoomPlayerView[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:6251
requiredPlayerCount
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { requiredPlayerCount } = tournamentRoomSnapshot
console.log(requiredPlayerCount)requiredPlayerCount:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:6252
roomId
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { roomId } = tournamentRoomSnapshot
console.log(roomId)roomId:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:6253
sealedPackCount?
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { sealedPackCount } = tournamentRoomSnapshot
console.log(sealedPackCount)
optionalsealedPackCount?:number|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6254
setCode
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { setCode } = tournamentRoomSnapshot
console.log(setCode)setCode:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:6255
status
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { status: healthStatus } = tournamentRoomSnapshot
console.log(healthStatus)status:
TournamentRoomStatus
Defined in: packages/ts-sdk/src/generated/types/common.ts:6256
tables
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { tables } = tournamentRoomSnapshot
console.log(tables)tables:
TournamentTableView[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:6257
visibility
Example:
import type { TournamentRoomSnapshot } from '@my-swu/simulator-client'
const tournamentRoomSnapshot: TournamentRoomSnapshot = {
"roomId": 'example',
"status": "waiting",
"visibility": "private",
"eventKind": "draft",
"setCode": 'example',
"bestOfMatches": 1,
"draftRounds": [],
"hostPlayerId": 'example',
"requiredPlayerCount": 0,
"players": [],
"tables": [],
"chat": [],
"activity": [],
}
const { visibility } = tournamentRoomSnapshot
console.log(visibility)visibility:
LobbyVisibility
Defined in: packages/ts-sdk/src/generated/types/common.ts:6258
