Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / TournamentRoomPlayerView

Interface: TournamentRoomPlayerView ​

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

Public tournament player row.

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

console.log(tournamentRoomPlayerView)

Properties ​

activeTableId? ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { activeTableId } = tournamentRoomPlayerView

console.log(activeTableId)

optional activeTableId?: string | null

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


authenticated ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { authenticated } = tournamentRoomPlayerView

console.log(authenticated)

authenticated: boolean

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

Whether this player joined from an authenticated app session.


avatarUrl? ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { avatarUrl } = tournamentRoomPlayerView

console.log(avatarUrl)

optional avatarUrl?: string | null

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


connected ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { connected } = tournamentRoomPlayerView

console.log(connected)

connected: boolean

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


deck? ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { deck: tournamentRoomPlayerViewDeck } = tournamentRoomPlayerView

console.log(tournamentRoomPlayerViewDeck)

optional deck?: LobbyDeckPreview | null

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


deckReady ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { deckReady } = tournamentRoomPlayerView

console.log(deckReady)

deckReady: boolean

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


host ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { host: tournamentRoomPlayerViewHost } = tournamentRoomPlayerView

console.log(tournamentRoomPlayerViewHost)

host: boolean

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


isAi? ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { isAi } = tournamentRoomPlayerView

console.log(isAi)

optional isAi?: boolean

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

Whether server automation permanently controls this participant.


joinedAtMs ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { joinedAtMs } = tournamentRoomPlayerView

console.log(joinedAtMs)

joinedAtMs: number

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


name ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { name } = tournamentRoomPlayerView

console.log(name)

name: string

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


playerId ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { playerId } = tournamentRoomPlayerView

console.log(playerId)

playerId: string

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


profileUrl? ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { profileUrl } = tournamentRoomPlayerView

console.log(profileUrl)

optional profileUrl?: string | null

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


ready ​

Example:

ts
import type { TournamentRoomPlayerView } from '@my-swu/simulator-client'

const tournamentRoomPlayerView: TournamentRoomPlayerView = {
  "playerId": 'example',
  "name": 'example',
  "authenticated": false,
  "host": false,
  "connected": false,
  "ready": false,
  "deckReady": false,
  "joinedAtMs": 0,
}

const { ready } = tournamentRoomPlayerView

console.log(ready)

ready: boolean

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

Released under the MIT License.