propellantOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The record of what an engine burns, found by the engine's name in a variant's engine text, or null when no page read here names it. A rocket's rocket makes "solid motor" mean its own.
インポート
import { propellantOf } from "@johnmorrisdotca/uchusen-rockets";
定義
function propellantOf(rocket: string, engineText: string | null | undefined): EnginePropellant | null
引数
| 名前 | 型 | 説明 |
|---|---|---|
rocket | string | A rocket's id. |
engineText | string | null | undefined | The engine text of a part, as a variant's data words it ("9 Merlin 1D"), or null or undefined. |
戻り値
EnginePropellant | null
What that engine burns, or null.
例
import { propellantOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(propellantOf("falcon-9", "9 Merlin 1D")?.propellant.value, propellantOf("starship", "3 sea-level and 3 vacuum"));LOX / RP-1 null出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。