@my-swu/simulator-client / TournamentRoomPlayerView
Interface: TournamentRoomPlayerView
Defined in: packages/ts-sdk/src/generated/types/common.ts:6166
Public tournament player row.
Example:
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:
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)
optionalactiveTableId?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6167
authenticated
Example:
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:
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)
optionalavatarUrl?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6172
connected
Example:
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:
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)
optionaldeck?:LobbyDeckPreview|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6174
deckReady
Example:
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:
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:
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)
optionalisAi?:boolean
Defined in: packages/ts-sdk/src/generated/types/common.ts:6180
Whether server automation permanently controls this participant.
joinedAtMs
Example:
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:
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:
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:
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)
optionalprofileUrl?:string|null
Defined in: packages/ts-sdk/src/generated/types/common.ts:6184
ready
Example:
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
