Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / AbilityCardChoiceTarget

Type Alias: AbilityCardChoiceTarget ​

AbilityCardChoiceTarget = { type: "unit"; unitId: number; } | { type: "upgrade"; upgradeId: number; } | { index: number; type: "creditToken"; } | { type: "forceToken"; }

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

A public game object chosen instead of a hidden physical card.

Example:

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

const abilityCardChoiceTarget: AbilityCardChoiceTarget = {
  "type": "unit",
  "unitId": 0,
}

console.log(abilityCardChoiceTarget)

Released under the MIT License.