grounded関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Whether slot may stand in the picture. A part waits until the part it stands on has finished, and that one waits the same way. A slot with no mount may stand.
インポート
import { grounded } from "@johnmorrisdotca/uchusen-rockets";
定義
function grounded(slot: string, done: readonly string[]): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
slot | string | The slot. |
done | readonly string[] | Slots whose step has finished. |
戻り値
boolean
True when every part it stands on is finished.
例
import { grounded } from "@johnmorrisdotca/uchusen-rockets";
console.log(grounded("habitat", ["drive", "engineering", "fuel-aft", "fuel-fore"]));
console.log(grounded("radiators-dorsal", ["drive"]));true
false出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。