@my-swu/simulator-client / TargetingActionView
Type Alias: TargetingActionView
TargetingActionView =
ActionAbilityView|LeaderActionView|PendingAbilityView|PlayActionView
Defined in: packages/ts-sdk/src/actionable.ts:19
Every projected action that asks the player to pick targets.
The engine splits these across two field names: PendingAbilityView nests its groups in targetPlan, while the three action views keep targetGroups inline. Walking both is what targetGroupsOf exists for.
Example:
ts
import type { TargetingActionView } from '@my-swu/simulator-client'
const targetingActionView: TargetingActionView = {
"id": 0,
"sourceCardId": 0,
"window": "AfterPlayOrDeploy",
"family": "Shielded",
"label": 'example',
"optional": false,
"canAcceptWithoutInput": false,
"targetPlan": {
"groups": [],
},
}
console.log(targetingActionView)