Reference · Rockets, variants, parts and the fit check
RoomSpectype
One room: its id, the name a cutaway labels it with, its job, and its size in metres.
Import it
import type { RoomSpec } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface RoomSpec {
id: RoomKind;
name: string;
job: string;
size: readonly [
number,
number,
number
];
}
Members
| Name | Type | Description |
|---|---|---|
id | RoomKind | |
name | string | The name a cutaway labels it with. |
job | string | What it is for, in a line. |
size | readonly [number, number, number] | Floor size in metres: width, depth, and the height of the room. |
Examples
import { ROOMS, type RoomSpec } from "@johnmorrisdotca/uchusen-rockets";
const mess: RoomSpec = ROOMS.mess;
console.log(mess.name, mess.size);Mess and galley [ 7, 5, 2.8 ]What it prints (run when this page was built)