Skip to content

@my-swu/simulator-client


@my-swu/simulator-client / UnitCopiedCardEntry

Interface: UnitCopiedCardEntry ​

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

Mirror of one [UnitState::copied_card] value on the wire.

Example:

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

const unitCopiedCardEntry: UnitCopiedCardEntry = {
  "unitInstanceId": 0,
  "copiedCardId": 0,
}

console.log(unitCopiedCardEntry)

Properties ​

copiedCardId ​

Example:

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

const unitCopiedCardEntry: UnitCopiedCardEntry = {
  "unitInstanceId": 0,
  "copiedCardId": 0,
}

const { copiedCardId } = unitCopiedCardEntry

console.log(copiedCardId)

copiedCardId: number

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

Card id of the card that was copied — the copy source, not the physical card on the board (which travels in UnitState::card_id). Resolved against the catalog at restore time — restore fails if the id is not present.


unitInstanceId ​

Example:

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

const unitCopiedCardEntry: UnitCopiedCardEntry = {
  "unitInstanceId": 0,
  "copiedCardId": 0,
}

const { unitInstanceId } = unitCopiedCardEntry

console.log(unitInstanceId)

unitInstanceId: number

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

Instance id of the unit whose copied_card should be rebound.

Released under the MIT License.