engineTable関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The engine table of a ship: for each role, which engine card, how many engines and what thrust, from the modules in its list.
インポート
import { engineTable } from "@johnmorrisdotca/uchusen-rockets";
定義
function engineTable(ship: ShipList): EngineRow[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
ship | ShipList | The ship's list of modules. |
戻り値
EngineRow[]
One row for each engine card the ship carries.
例
import { engineTable, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
for (const row of engineTable(SAMPLE_SHIPS.hauler)) console.log(row.role, row.count, (row.thrust / 1e6).toFixed(0), "MN");main 7 210 MN出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。