@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:
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:
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:
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:
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?
optionalmodeTextReferences?: (CardTextRef|null)[]
Exact reviewed Mode wrappers for every selected executable option.
selected
selected:
number[]
stepId
stepId:
string
text?
optionaltext?:EffectTextRefsView|null
Type Literal
Example:
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:
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:
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:
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:
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; }
