Reference · Rockets, variants, parts and the fit check
EnginePropellanttype
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 it
import type { EnginePropellant } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface EnginePropellant {
id: string;
name: string;
names: readonly string[];
rocket?: string;
propellant: Figure<string>;
flame: Exclude<FlameKind, "neutral">;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
name | string | |
names | readonly string[] | Words that, found in a variant's engine text, say this is the engine. |
rocket (optional) | 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" |
Examples
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 keroseneWhat it prints (run when this page was built)