swapsFor関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The modules that swap for a module: those that share its slot, with the same collars and the same length. A mission pod is one: the survey pod and the medical pod stand in the same place on a ship.
インポート
import { swapsFor } from "@johnmorrisdotca/uchusen-rockets";
定義
function swapsFor(id: string): KitModule[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
id | string | A module's id. |
戻り値
KitModule[]
The other modules of its slot, or none for a module with no slot.
例
import { swapsFor } from "@johnmorrisdotca/uchusen-rockets";
console.log(swapsFor("pod-survey-m").map((module) => module.name));[ 'Mission pod, medical and rescue' ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。