Skip to the content

Uchusen Rockets宇宙船

Rockets drawn from sourced sizes: line drawings and painted 3D views you drop into a page, take apart and turn round, and a typed model that checks whether a rocket really goes together.

Uchusen is the Japanese word 宇宙船 for spaceship. About the name

Contents

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

NameTypeDescription
shipShipList

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 MN

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/uchusen-rockets 0.14.0.