deckSummary関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { deckSummary } from "@johnmorrisdotca/uchusen-rockets";
定義
function deckSummary(ship: ShipList): (Deck & { id: string; })[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
ship | ShipList | The ship's list. |
戻り値
(Deck & { id: string; })[]
The decks, deck 1 first.
例
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, lower出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。