Reference · Rockets, variants, parts and the fit check
ROOMSconstant
The rooms people need, named, each with a job and a size in metres: a cabin, a mess, a gym, a garden, an observation lounge, medical, a storm shelter, a recreation room, a school, a plaza, a bridge, a quarantine room, engineering, life support, stores and an airlock. A ship places them in a cutaway
with room.
Import it
import { ROOMS } from "@johnmorrisdotca/uchusen-rockets";
Definition
const ROOMS: Readonly<Record<RoomKind, RoomSpec>>
Members
| Name | Type | Description |
|---|---|---|
cabin | RoomSpec | |
mess | RoomSpec | |
gym | RoomSpec | |
garden | RoomSpec | |
lounge | RoomSpec | |
medical | RoomSpec | |
shelter | RoomSpec | |
recreation | RoomSpec | |
school | RoomSpec | |
plaza | RoomSpec | |
bridge | RoomSpec | |
quarantine | RoomSpec | |
engineering | RoomSpec | |
lifesupport | RoomSpec | |
stores | RoomSpec | |
airlock | RoomSpec |
Examples
import { ROOMS } from "@johnmorrisdotca/uchusen-rockets";
console.log(Object.values(ROOMS).map((room) => room.name).join(", "));Crew cabin, Mess and galley, Exercise room, Green room, Observation lounge, Medical bay, Storm shelter, Recreation room, School room, Plaza, Bridge, Quarantine, Engineering, Life support, Stores, AirlockWhat it prints (run when this page was built)