@my-swu/simulator-client / PlaygroundExportPayload
Interface: PlaygroundExportPayload
Defined in: packages/ts-sdk/src/generated/types/common.ts:4998
Portable Playground file. restore_token is a dedicated capability and never contains a live match seat token.
Example:
ts
import type { PlaygroundExportPayload } from '@my-swu/simulator-client'
const playgroundExportPayload: PlaygroundExportPayload = {
"version": 1,
"save": {
"version": 0,
"sourceMatchId": 'example',
"seats": [],
"aiOpponents": [],
"aiPaused": false,
"copiedCards": [],
"state": {},
},
"restoreToken": 'example',
}
console.log(playgroundExportPayload)Properties
restoreToken
Example:
ts
import type { PlaygroundExportPayload } from '@my-swu/simulator-client'
const playgroundExportPayload: PlaygroundExportPayload = {
"version": 1,
"save": {
"version": 0,
"sourceMatchId": 'example',
"seats": [],
"aiOpponents": [],
"aiPaused": false,
"copiedCards": [],
"state": {},
},
"restoreToken": 'example',
}
const { restoreToken } = playgroundExportPayload
console.log(restoreToken)restoreToken:
string
Defined in: packages/ts-sdk/src/generated/types/common.ts:4999
save
Example:
ts
import type { PlaygroundExportPayload } from '@my-swu/simulator-client'
const playgroundExportPayload: PlaygroundExportPayload = {
"version": 1,
"save": {
"version": 0,
"sourceMatchId": 'example',
"seats": [],
"aiOpponents": [],
"aiPaused": false,
"copiedCards": [],
"state": {},
},
"restoreToken": 'example',
}
const { save } = playgroundExportPayload
console.log(save)save:
MatchSavePayload
Defined in: packages/ts-sdk/src/generated/types/common.ts:5000
version
Example:
ts
import type { PlaygroundExportPayload } from '@my-swu/simulator-client'
const playgroundExportPayload: PlaygroundExportPayload = {
"version": 1,
"save": {
"version": 0,
"sourceMatchId": 'example',
"seats": [],
"aiOpponents": [],
"aiPaused": false,
"copiedCards": [],
"state": {},
},
"restoreToken": 'example',
}
const { version } = playgroundExportPayload
console.log(version)version:
number
Defined in: packages/ts-sdk/src/generated/types/common.ts:5001
