Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / CurrentAttackStateView

Type Alias: CurrentAttackStateView ​

CurrentAttackStateView = CurrentAttackView | null

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

Required nullable current-combat projection.

Public snapshots always encode an inactive attack as null. Keeping that null as a non-Option field rejects stale payloads that omit it.

Example:

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

const currentAttackStateView: CurrentAttackStateView = {
  "attackerId": 0,
  "target": {
    "playerBase": {
      "seat": "one",
    },
  },
}

console.log(currentAttackStateView)

Released under the MIT License.