Reference · Rockets, variants, parts and the fit check
deckSummaryfunction
The numbered deck summary of a ship, bow to stern: every section that is a deck, numbered from 1 at the bow. A deck is its own part group, so a viewer can show it alone or highlight it from its number.
Import it
import { deckSummary } from "@johnmorrisdotca/uchusen-rockets";
Definition
function deckSummary(ship: ShipList): (Deck & { id: string; })[]
Parameters
| Name | Type | Description |
|---|---|---|
ship | ShipList | The ship's list. |
Returns
(Deck & { id: string; })[]
The decks, deck 1 first.
Examples
import { deckSummary, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
for (const deck of deckSummary(SAMPLE_SHIPS.scout)) console.log(deck.number, deck.name);1 Upper platform
2 Middle platform
3 Lower platform
4 Command gallery
5 Helm and navigation deck
6 Chart and sensor deck
7 Instrument lab
8 Wet lab
9 Surgery
10 Stretcher bay
11 Ring habitat, deck A (16 m radius)
12 Ring commons
13 Ring services deck
14 Shield gallery
15 Reactor control room
16 Coolant pumps and valves
17 Engineering gallery, upper
18 Engineering gallery, lowerWhat it prints (run when this page was built)