Reference · Rockets, variants, parts and the fit check
engineTablefunction
The engine table of a ship: for each role, which engine card, how many engines and what thrust, from the modules in its list.
Import it
import { engineTable } from "@johnmorrisdotca/uchusen-rockets";
Definition
function engineTable(ship: ShipList): EngineRow[]
Parameters
| Name | Type | Description |
|---|---|---|
ship | ShipList | The ship's list of modules. |
Returns
EngineRow[]
One row for each engine card the ship carries.
Examples
import { engineTable, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
for (const row of engineTable(SAMPLE_SHIPS.hauler)) console.log(row.role, row.count, (row.thrust / 1e6).toFixed(0), "MN");main 7 210 MNWhat it prints (run when this page was built)