@my-swu/simulator-client / JoinMatchRequest
Interface: JoinMatchRequest
Defined in: packages/ts-sdk/src/generated/types/join-match-request.ts:66
Example:
ts
import type { JoinMatchRequest } from '@my-swu/simulator-client'
// Seat two submits a separate legal deck when joining the match.
const premierGuestDeck = {
leader: 46107, // Darth Vader - Unstoppable
base: 309, // Tarkintown
cards: Array.from({ length: 50 }, () => 35), // TIE/ln Fighter
}
const joinMatchRequest: JoinMatchRequest = { deck: premierGuestDeck }
console.log(joinMatchRequest)Indexable
[
k:string]:unknown
Properties
deck
Example:
ts
import type { JoinMatchRequest } from '@my-swu/simulator-client'
// Seat two submits a separate legal deck when joining the match.
const premierGuestDeck = {
leader: 46107, // Darth Vader - Unstoppable
base: 309, // Tarkintown
cards: Array.from({ length: 50 }, () => 35), // TIE/ln Fighter
}
const joinMatchRequest: JoinMatchRequest = { deck: premierGuestDeck }
const { deck: premierGuestDeckInput } = joinMatchRequest
console.log(premierGuestDeckInput)deck:
DeckInput
Defined in: packages/ts-sdk/src/generated/types/join-match-request.ts:67
formatSetup?
Example:
ts
import type { JoinMatchRequest } from '@my-swu/simulator-client'
// Seat two submits a separate legal deck when joining the match.
const premierGuestDeck = {
leader: 46107, // Darth Vader - Unstoppable
base: 309, // Tarkintown
cards: Array.from({ length: 50 }, () => 35), // TIE/ln Fighter
}
const joinMatchRequest: JoinMatchRequest = { deck: premierGuestDeck }
const { formatSetup } = joinMatchRequest
console.log(formatSetup)
optionalformatSetup?:FormatSetupInput|null
Defined in: packages/ts-sdk/src/generated/types/join-match-request.ts:71
Optional setup data for formats that register more than one deck or a pool.
