Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / UndoMatchResponse

Interface: UndoMatchResponse ​

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

Example:

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

const undoMatchResponse: UndoMatchResponse = {
  "snapshot": {
    "matchId": 'example',
    "format": "premier",
    "playerCount": 2,
    "series": {
      "format": "premier",
      "bestOfGames": 1,
      "currentGameNumber": 0,
      "games": [],
      "seats": [],
    },
    "status": "lobby",
    "phase": "lobby",
    "prompt": "lobbyReady",
    "roundNumber": 0,
    "turnPlayer": "one",
    "initiative": {
      "available": false,
    },
    "availableCounters": [],
    "consecutivePasses": 0,
    "winners": [],
    "eventsApplied": 0,
    "activeEffects": [],
    "delayedEffects": [],
    "currentAttack": {
      "attackerId": 0,
      "target": {
        "playerBase": {
          "seat": "one",
        },
      },
    },
    "pendingAbilities": [],
    "availableLeaderDeploys": [],
    "availableAttacks": [],
    "playActions": [],
    "rejectedPlayReasons": [],
    "actionAbilities": [],
    "groundArena": [],
    "spaceArena": [],
    "players": [],
  },
}

console.log(undoMatchResponse)

Properties ​

snapshot ​

Example:

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

const undoMatchResponse: UndoMatchResponse = {
  "snapshot": {
    "matchId": 'example',
    "format": "premier",
    "playerCount": 2,
    "series": {
      "format": "premier",
      "bestOfGames": 1,
      "currentGameNumber": 0,
      "games": [],
      "seats": [],
    },
    "status": "lobby",
    "phase": "lobby",
    "prompt": "lobbyReady",
    "roundNumber": 0,
    "turnPlayer": "one",
    "initiative": {
      "available": false,
    },
    "availableCounters": [],
    "consecutivePasses": 0,
    "winners": [],
    "eventsApplied": 0,
    "activeEffects": [],
    "delayedEffects": [],
    "currentAttack": {
      "attackerId": 0,
      "target": {
        "playerBase": {
          "seat": "one",
        },
      },
    },
    "pendingAbilities": [],
    "availableLeaderDeploys": [],
    "availableAttacks": [],
    "playActions": [],
    "rejectedPlayReasons": [],
    "actionAbilities": [],
    "groundArena": [],
    "spaceArena": [],
    "players": [],
  },
}

const { snapshot: matchSnapshot } = undoMatchResponse

console.log(matchSnapshot)

snapshot: GameState

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

Updated match snapshot visible to the undo requester.

Released under the MIT License.