Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / EffectResolutionDraftStepView

Type Alias: EffectResolutionDraftStepView ​

EffectResolutionDraftStepView = { editable: boolean; kind: "target"; label: string; purpose: TargetGroupPurpose; selected: AbilityTarget[]; stepId: string; text?: EffectTextRefsView | null; } | { editable: boolean; kind: "amount"; label: string; selected: number; stepId: string; text?: EffectTextRefsView | null; } | { editable: boolean; kind: "modes"; label: string; modeTextReferences?: (CardTextRef | null)[]; selected: number[]; stepId: string; text?: EffectTextRefsView | null; } | { editable: boolean; kind: "cards"; label: string; selected: number[]; stepId: string; text?: EffectTextRefsView | null; } | { editable: boolean; kind: "name"; label: string; selected: string; stepId: string; text?: EffectTextRefsView | null; } | { editable: boolean; kind: "aspect"; label: string; selected: string; stepId: string; text?: EffectTextRefsView | null; } | { attackerId: number; editable: boolean; kind: "attack"; label: string; stepId: string; target: AttackTarget; text?: EffectTextRefsView | null; } | { editable: boolean; kind: "distribution"; label: string; selected: DistributionAssignment[]; stepId: string; text?: EffectTextRefsView | null; }

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

One selected draft answer. step_id remains stable across projection.

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

Union Members ​

Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "target"; label: string; purpose: TargetGroupPurpose; selected: AbilityTarget[]; stepId: string; text?: EffectTextRefsView | null; }


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "amount"; label: string; selected: number; stepId: string; text?: EffectTextRefsView | null; }


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "modes"; label: string; modeTextReferences?: (CardTextRef | null)[]; selected: number[]; stepId: string; text?: EffectTextRefsView | null; }

editable ​

editable: boolean

kind ​

kind: "modes"

label ​

label: string

modeTextReferences? ​

optional modeTextReferences?: (CardTextRef | null)[]

Exact reviewed Mode wrappers for every selected executable option.

selected ​

selected: number[]

stepId ​

stepId: string

text? ​

optional text?: EffectTextRefsView | null


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "cards"; label: string; selected: number[]; stepId: string; text?: EffectTextRefsView | null; }


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "name"; label: string; selected: string; stepId: string; text?: EffectTextRefsView | null; }


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "aspect"; label: string; selected: string; stepId: string; text?: EffectTextRefsView | null; }


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ attackerId: number; editable: boolean; kind: "attack"; label: string; stepId: string; target: AttackTarget; text?: EffectTextRefsView | null; }


Type Literal ​

Example:

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

const effectResolutionDraftStepView: EffectResolutionDraftStepView = {
  "kind": "target",
  "stepId": 'example',
  "label": 'example',
  "purpose": {
    "kind": "dealDamage",
  },
  "selected": [],
  "editable": false,
}

console.log(effectResolutionDraftStepView)

{ editable: boolean; kind: "distribution"; label: string; selected: DistributionAssignment[]; stepId: string; text?: EffectTextRefsView | null; }

Released under the MIT License.