CrewSpace型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 type { CrewSpace } from "@johnmorrisdotca/uchusen-rockets";
定義
interface CrewSpace {
kind: RoomKind;
name: string;
deck: string;
at: readonly [
number,
number,
number
];
serves: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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. |
例
import { companyOf } from "@johnmorrisdotca/uchusen-rockets";
const bridge = companyOf("miyamoto").spaces.find((space) => space.kind === "bridge");
console.log(bridge?.deck, bridge?.serves);Operations ring 144出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。