buildOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The build order of a ship, or nothing when that ship has no build to play. A cutaway and a deployed sail play the same build as the flown ship.
インポート
import { buildOf } from "@johnmorrisdotca/uchusen-rockets";
定義
function buildOf(variant: string): readonly PlayStep[] | undefined
引数
| 名前 | 型 | 説明 |
|---|---|---|
variant | string | The variant id. |
戻り値
readonly PlayStep[] | undefined
The steps, or undefined when that ship has no build to play.
例
import { buildOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(buildOf("miyamoto")?.length);
console.log(buildOf("starship") === undefined);14
true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。