EnginePropellant型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What one engine burns: its name as the variants' data spells it, the propellant as its page words it (a figure with its source), and the kind of flame that picks the colour.
インポート
import type { EnginePropellant } from "@johnmorrisdotca/uchusen-rockets";
定義
interface EnginePropellant {
id: string;
name: string;
names: readonly string[];
rocket?: string;
propellant: Figure<string>;
flame: Exclude<FlameKind, "neutral">;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
id | string | |
name | string | |
names | readonly string[] | Words that, found in a variant's engine text, say this is the engine. |
rocket (省略可) | string | undefined | Left out: any rocket. A rocket's id when the same words mean another engine elsewhere (a "solid motor"). |
propellant | Figure<string> | |
flame | "kerosene" | "methane" | "hydrogen" | "solid" | "hypergolic" |
例
import { PROPELLANTS, type EnginePropellant } from "@johnmorrisdotca/uchusen-rockets";
const merlin: EnginePropellant | undefined = PROPELLANTS.find((one) => one.id === "merlin");
console.log(merlin?.propellant.value, merlin?.flame);LOX / RP-1 kerosene出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。