@my-swu/simulator-client / DeckOpponentStats
Interface: DeckOpponentStats
Defined in: packages/ts-sdk/src/generated/types/common.ts:1133
One human-or-AI partition within a format.
Example:
ts
import type { DeckOpponentStats } from '@my-swu/simulator-client'
const deckOpponentStats: DeckOpponentStats = {
"opponentKind": "human",
"matches": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"games": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"matchups": [],
}
console.log(deckOpponentStats)Properties
games
Example:
ts
import type { DeckOpponentStats } from '@my-swu/simulator-client'
const deckOpponentStats: DeckOpponentStats = {
"opponentKind": "human",
"matches": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"games": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"matchups": [],
}
const { games } = deckOpponentStats
console.log(games)games:
WinLossDrawRecord
Defined in: packages/ts-sdk/src/generated/types/common.ts:1134
matches
Example:
ts
import type { DeckOpponentStats } from '@my-swu/simulator-client'
const deckOpponentStats: DeckOpponentStats = {
"opponentKind": "human",
"matches": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"games": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"matchups": [],
}
const { matches } = deckOpponentStats
console.log(matches)matches:
WinLossDrawRecord
Defined in: packages/ts-sdk/src/generated/types/common.ts:1135
matchups
Example:
ts
import type { DeckOpponentStats } from '@my-swu/simulator-client'
const deckOpponentStats: DeckOpponentStats = {
"opponentKind": "human",
"matches": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"games": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"matchups": [],
}
const { matchups } = deckOpponentStats
console.log(matchups)matchups:
DeckArchetypeMatchup[]
Defined in: packages/ts-sdk/src/generated/types/common.ts:1136
opponentKind
Example:
ts
import type { DeckOpponentStats } from '@my-swu/simulator-client'
const deckOpponentStats: DeckOpponentStats = {
"opponentKind": "human",
"matches": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"games": {
"wins": 0,
"losses": 0,
"draws": 0,
"total": 0,
"endReasons": [],
},
"matchups": [],
}
const { opponentKind } = deckOpponentStats
console.log(opponentKind)opponentKind:
DeckStatsOpponentKind
Defined in: packages/ts-sdk/src/generated/types/common.ts:1137
