Reference · Rockets, variants, parts and the fit check
EngineRowtype
One line of a ship's engine table: a role, the card, how many engines and their thrust together.
Import it
import type { EngineRow } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface EngineRow {
role: EngineRole;
card: EngineCard;
count: number;
thrust: number;
}
Members
| Name | Type | Description |
|---|---|---|
role | EngineRole | |
card | EngineCard | |
count | number | Engines of this card on the ship, and their thrust together, in newtons. |
thrust | number |
Examples
import { engineTable, type EngineRow, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const row: EngineRow = engineTable(SAMPLE_SHIPS.scout)[0];
console.log(row.role, row.count, row.thrust);main 3 90000000What it prints (run when this page was built)