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

flightNowfunction

The assembly flight underway at at: flights are the build steps in the order they start, named like an ISS flight.

Import it

import { flightNow } from "@johnmorrisdotca/uchusen-rockets";

Definition

function flightNow(steps: readonly PlayStep[], at: number): { n: number; slot: string; title: string; } | null

Parameters

NameTypeDescription
stepsreadonly PlayStep[]

The ship's build order.

atnumber

How far through the build, from 0 to 1.

Returns

{ n: number; slot: string; title: string; } | null

The flight number, the slot and its title, or null when there are no steps.

Examples

import { buildOf, flightNow } from "@johnmorrisdotca/uchusen-rockets";

const now = flightNow(buildOf("miyamoto") ?? [], 0);
console.log(now?.n, now?.title);
1 Drive

What it prints (run when this page was built)

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