Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / ActionAbilitySource

Type Alias: ActionAbilitySource ​

ActionAbilitySource = { type: "leader"; } | { leaderIndex: number; type: "leaderByIndex"; } | { actionIndex: number; type: "leaderUnit"; unitId: number; } | { actionIndex: number; type: "unit"; unitId: number; } | { type: "base"; } | { type: "grantedUpgrade"; unitId: number; upgradeId: number; } | { baseSeat: Seat; type: "grantedBaseUpgrade"; upgradeId: number; }

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

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

Union Members ​

Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ type: "leader"; }


Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ leaderIndex: number; type: "leaderByIndex"; }

leaderIndex ​

leaderIndex: number

Non-primary leader slots start at one; slot zero uses legacy Leader.

type ​

type: "leaderByIndex"


Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ actionIndex: number; type: "leaderUnit"; unitId: number; }


Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ actionIndex: number; type: "unit"; unitId: number; }


Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ type: "base"; }


Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ type: "grantedUpgrade"; unitId: number; upgradeId: number; }


Type Literal ​

Example:

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

const actionAbilitySource: ActionAbilitySource = {
  "type": "leader",
}

console.log(actionAbilitySource)

{ baseSeat: Seat; type: "grantedBaseUpgrade"; upgradeId: number; }

Released under the MIT License.