Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / MatchHistoryReplayArchive

Interface: MatchHistoryReplayArchive ​

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

Safe completed-series replay archive. frames never contains private zones; revealed_frames is returned only after both completion and ownership checks.

Example:

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

const matchHistoryReplayArchive: MatchHistoryReplayArchive = {
  "frames": [],
  "revealedFrames": [],
}

console.log(matchHistoryReplayArchive)

Properties ​

aiDecisions? ​

Example:

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

const matchHistoryReplayArchive: MatchHistoryReplayArchive = {
  "frames": [],
  "revealedFrames": [],
}

const { aiDecisions } = matchHistoryReplayArchive

console.log(aiDecisions)

optional aiDecisions?: AiDecisionDiagnostic[]

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

Per-AI-decision search diagnostics (budget, workers, starvation), in decision order. Additive: older archives decode with an empty list.


frameEvents? ​

Example:

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

const matchHistoryReplayArchive: MatchHistoryReplayArchive = {
  "frames": [],
  "revealedFrames": [],
}

const { frameEvents } = matchHistoryReplayArchive

console.log(frameEvents)

optional frameEvents?: GameEvent[][]

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

Events folded into each matching replay frame. Older archives decode without this additive field and remain playable without captions.


frames ​

Example:

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

const matchHistoryReplayArchive: MatchHistoryReplayArchive = {
  "frames": [],
  "revealedFrames": [],
}

const { frames } = matchHistoryReplayArchive

console.log(frames)

frames: GameState[]

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


revealedFrames ​

Example:

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

const matchHistoryReplayArchive: MatchHistoryReplayArchive = {
  "frames": [],
  "revealedFrames": [],
}

const { revealedFrames } = matchHistoryReplayArchive

console.log(revealedFrames)

revealedFrames: GameState[]

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

Released under the MIT License.