Reference · Rockets, variants, parts and the fit check
CrewSpacetype
One room on a ship: what it is, which deck it stands on, where that deck is, and how many of the crew it is for.
Import it
import type { CrewSpace } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface CrewSpace {
kind: RoomKind;
name: string;
deck: string;
at: readonly [
number,
number,
number
];
serves: number;
}
Members
| Name | Type | Description |
|---|---|---|
kind | RoomKind | |
name | string | The name this ship uses for the room. |
deck | string | The deck it stands on, in that ship's own words. |
at | readonly [number, number, number] | Metres from the ship's origin: across, along the length, and up. The length is the deck's own station. |
serves | number | How many of the crew this room is for. |
Examples
import { companyOf } from "@johnmorrisdotca/uchusen-rockets";
const bridge = companyOf("miyamoto").spaces.find((space) => space.kind === "bridge");
console.log(bridge?.deck, bridge?.serves);Operations ring 144What it prints (run when this page was built)