Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / GameCommand

Type Alias: GameCommand ​

GameCommand = "deployLeader" | "takeInitiative" | "pass" | "concede" | { playground: { command: PlaygroundCommand; }; } | { chooseInitiativePlayer: { seat: Seat; }; } | { chooseMulligan: { takeMulligan: boolean; }; } | { chooseOpeningResources: { cardInstanceIds: number[]; }; } | { playCard: { attachedTo?: PlayAttachment | null; captureSelections: CaptureSelection[]; cardInstanceId: number; creditTokensToSpend: number; exploitUnitIds: number[]; modeIndices: number[]; smuggleCostTarget?: AbilityTarget | null; smuggleKind?: SmuggleKind | null; target?: AbilityTarget | null; targets: AbilityTarget[]; }; } | { useLeaderAction: { creditTokensToSpend: number; modeIndices: number[]; target?: AbilityTarget | null; targets: AbilityTarget[]; }; } | { useActionAbility: { creditTokensToSpend: number; modeIndices: number[]; source: ActionAbilitySource; target?: AbilityTarget | null; targets: AbilityTarget[]; }; } | { deployLeaderAsPilot: { attachedToUnitId: number; }; } | { deployLeaderByIndex: { leaderIndex: number; }; } | { deployLeaderAsPilotByIndex: { attachedToUnitId: number; leaderIndex: number; }; } | { attack: { attackerId: number; target: AttackTarget; }; } | { resolveAbility: { abilityId: number; attachedToUnitId?: number | null; captureSelections: CaptureSelection[]; creditTokensToSpend?: number; exploitUnitIds?: number[] | null; modeIndices: number[]; target?: AbilityTarget | null; targets: AbilityTarget[]; }; } | { acceptAbility: { abilityId: number; }; } | { declineAbility: { abilityId: number; }; } | { rewindEffectResolution: { draftId: number; stepId: string; }; } | { chooseAbilityModes: { abilityId: number; modeIndices: number[]; }; } | { chooseAbilityCards: { abilityId: number; cardInstanceIds: number[]; creditTokensToSpend: number; targetSelections?: AbilityCardChoiceTarget[]; }; } | { chooseAbilityName: { abilityId: number; name: string; }; } | { chooseAbilityAspect: { abilityId: number; aspect: string; }; } | { chooseAbilityAttack: { abilityId: number; attackerId?: number | null; target?: AttackTarget | null; }; } | { chooseDistributionAssignments: { abilityId: number; assignments: DistributionAssignment[]; }; } | { chooseTriggeredAbilityPlayerOrder: { firstSeat: Seat; }; } | { chooseDelayedEffectOrder: { occurrenceSequence: number; }; } | { takeAvailableCounter: { counter: TwinSunsCounter; }; } | { choosePlanCard: { cardInstanceId: number; }; } | { chooseRegroupResource: { cardInstanceId?: number | null; }; }

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

Example:

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

const passCommand: GameCommand = 'pass'

console.log(passCommand)

Released under the MIT License.