Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / TournamentRoomSnapshot

Interface: TournamentRoomSnapshot ​

Defined in: packages/ts-sdk/src/generated/types/common.ts:6232

Public tournament room snapshot.

Example:

ts
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:

ts
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:

ts
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:

ts
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:

ts
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:

ts
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)

optional event?: LimitedEventSnapshot | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:6240


eventKind ​

Example:

ts
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:

ts
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:

ts
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)

optional matchSeed?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:6246

Fixed duel match seed when configured.


packSeed? ​

Example:

ts
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)

optional packSeed?: string | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:6250

Fixed limited pack/leader seed when configured.


players ​

Example:

ts
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:

ts
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:

ts
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:

ts
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)

optional sealedPackCount?: number | null

Defined in: packages/ts-sdk/src/generated/types/common.ts:6254


setCode ​

Example:

ts
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:

ts
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:

ts
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:

ts
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

Released under the MIT License.