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

ShipIssuetype

What went wrong with a ship: which place, and why.

Import it

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

Definition

interface ShipIssue {
    place: number;
    code: "unknown-module" | "collar-mismatch" | "no-such-port" | "port-taken" | "no-spine";
    message: string;
}

Members

NameTypeDescription
placenumber
code"unknown-module" | "collar-mismatch" | "no-such-port" | "port-taken" | "no-spine"
messagestring

Examples

import { assemble, type ShipIssue } from "@johnmorrisdotca/uchusen-rockets";

const issues: ShipIssue[] = assemble([{ module: "engine-fusion-7" }, { module: "container-12" }]).issues;
console.log(issues[0]?.code, issues[0]?.message);
collar-mismatch Fusion engine cluster, 7 ends in a L collar and Heavy cargo container starts with a M.

What it prints (run when this page was built)

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