Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / GameCommand

Type Alias: GameCommand

GameCommand = "deployLeader" | "takeInitiative" | "pass" | "concede" | { chooseInitiativePlayer: {[k: string]: unknown; seat: Seat; }; } | { chooseMulligan: {[k: string]: unknown; takeMulligan: boolean; }; } | { chooseOpeningResources: {[k: string]: unknown; cardIds: number[]; }; } | { playCard: {[k: string]: unknown; attachedToUnitId?: number | null; captureSelections?: CaptureSelection[]; cardId: number; exploitUnitIds?: number[]; modeIndices?: number[]; resourceIndex?: number | null; smuggleCostTarget?: AbilityTarget | null; smuggleKind?: SmuggleKind | null; target?: AbilityTarget | null; targets?: AbilityTarget[]; }; } | { useLeaderAction: {[k: string]: unknown; modeIndices?: number[]; target?: AbilityTarget | null; targets?: AbilityTarget[]; }; } | { useActionAbility: {[k: string]: unknown; modeIndices?: number[]; source: ActionAbilitySource; target?: AbilityTarget | null; targets?: AbilityTarget[]; }; } | { deployLeaderAsPilot: {[k: string]: unknown; attachedToUnitId: number; }; } | { deployLeaderByIndex: {[k: string]: unknown; leaderIndex: number; }; } | { deployLeaderAsPilotByIndex: {[k: string]: unknown; attachedToUnitId: number; leaderIndex: number; }; } | { attack: {[k: string]: unknown; attackerId: number; target: AttackTarget; }; } | { resolveAbility: {[k: string]: unknown; abilityId: number; attachedToUnitId?: number | null; captureSelections?: CaptureSelection[]; exploitUnitIds?: number[] | null; modeIndices?: number[]; target?: AbilityTarget | null; targets?: AbilityTarget[]; }; } | { chooseAbilityModes: {[k: string]: unknown; abilityId: number; modeIndices: number[]; }; } | { chooseAbilityCards: {[k: string]: unknown; abilityId: number; cardIds?: number[]; resourceIndices?: number[]; }; } | { chooseAbilityName: {[k: string]: unknown; abilityId: number; name: string; }; } | { chooseAbilityAspect: {[k: string]: unknown; abilityId: number; aspect: string; }; } | { chooseAbilityAttack: {[k: string]: unknown; abilityId: number; attackerId?: number | null; target?: AttackTarget | null; }; } | { chooseIndirectDamageAssignments: {[k: string]: unknown; abilityId: number; assignments: IndirectDamageAssignment[]; }; } | { chooseTriggeredAbilityPlayerOrder: {[k: string]: unknown; firstSeat: Seat; }; } | { takeAvailableCounter: {[k: string]: unknown; counter: TwinSunsCounter; }; } | { choosePlanCard: {[k: string]: unknown; cardId: number; }; } | { chooseRegroupResource: {[k: string]: unknown; cardId?: number | null; }; }

Defined in: packages/ts-sdk/src/generated/types/game-command.ts:3

Example:

ts
import type { 
GameCommand
} from '@my-swu/simulator-client'
const
passCommand
:
GameCommand
= 'pass'
console
.
log
(
passCommand
)

Released under the MIT License.