specBlock関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The spec block of a ship, for its sheet and its inspector: length, beam, height, dry and full mass, the engines by role, thrust, acceleration, top and cruise speed and the trip to Proxima Centauri in ship time and in Earth's. Crew, passengers and cargo belong to the ship's own bible and are not here.
インポート
import { specBlock } from "@johnmorrisdotca/uchusen-rockets";
定義
function specBlock(ship: ShipList, extras?: { computer?: string; atc?: number; }): SpecLine[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
ship | ShipList | The ship's list. |
extras (省略可) | { computer?: string; atc?: number; } | The ship's computer ("KAZE core v4") and its number of small craft (ATC), which belong to the ship and not to the kit. |
戻り値
SpecLine[]
The lines, in the order a sheet prints them.
例
import { specBlock, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
for (const line of specBlock(SAMPLE_SHIPS.scout)) console.log(`${line.name}: ${line.value}`);Length: 151.9 m
Beam: 38.8 m
Dry mass: 2,330 t
Full mass: 4,590 t
Engines, main (FTD ×3): 3 x 30 MN = 90 MN
Acceleration: 1.999 g full, 3.939 g dry
Cruise speed: 1.3% of c
Top speed: 2.7% of c
Proxima Centauri: 319.1 years aboard, 319.1 years on Earth出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。