EngineRow型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One line of a ship's engine table: a role, the card, how many engines and their thrust together.
インポート
import type { EngineRow } from "@johnmorrisdotca/uchusen-rockets";
定義
interface EngineRow {
role: EngineRole;
card: EngineCard;
count: number;
thrust: number;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
role | EngineRole | |
card | EngineCard | |
count | number | Engines of this card on the ship, and their thrust together, in newtons. |
thrust | number |
例
import { engineTable, type EngineRow, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
const row: EngineRow = engineTable(SAMPLE_SHIPS.scout)[0];
console.log(row.role, row.count, row.thrust);main 3 90000000出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。