Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / TournamentTableView

Interface: TournamentTableView ​

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

Public state for one open or active duel table.

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

console.log(tournamentTableView)

Properties ​

createdAtMs ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { createdAtMs } = tournamentTableView

console.log(createdAtMs)

createdAtMs: number

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


creatorPlayerId ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { creatorPlayerId } = tournamentTableView

console.log(creatorPlayerId)

creatorPlayerId: string

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


matchId? ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { matchId } = tournamentTableView

console.log(matchId)

optional matchId?: string | null

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


opponentPlayerId? ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { opponentPlayerId } = tournamentTableView

console.log(opponentPlayerId)

optional opponentPlayerId?: string | null

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


returnedPlayerIds ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { returnedPlayerIds } = tournamentTableView

console.log(returnedPlayerIds)

returnedPlayerIds: string[]

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


status ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { status: healthStatus } = tournamentTableView

console.log(healthStatus)

status: TournamentTableStatus

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


tableId ​

Example:

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

const tournamentTableView: TournamentTableView = {
  "tableId": 'example',
  "status": "open",
  "creatorPlayerId": 'example',
  "returnedPlayerIds": [],
  "createdAtMs": 0,
}

const { tableId } = tournamentTableView

console.log(tableId)

tableId: string

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

Released under the MIT License.