SAMPLE_SHIPS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The kit's sample ships: three lists of modules, from a hauler with parallel cargo to a short scout and a bulwark with a shield. Each is a good ship list to copy.
インポート
import { SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
定義
const SAMPLE_SHIPS: Readonly<Record<string, ShipList>> = {
hauler: [
{ module: "engine-fusion-7" },
{ module: "tank-cryo-24" },
{ module: "reactor-fusion" },
{ module: "cargo-bay-4" },
{ module: "container-12", on: { place: 3, port: "bay1" } },
{ module: "container-12-cold", on: { place: 3, port: "bay2" } },
{ module: "container-12", on: { place: 3, port: "bay3" } },
{ module: "container-12", on: { place: 3, port: "bay4" } },
{ module: "habitat-drum-large" },
{ module: "adapter-l-m" },
{ module: "common-area-m" },
{ module: "habitat-ring-16" },
{ module: "eva-lock-m" },
{ module: "pod-survey-m" },
{ module: "lab-m" },
{ module: "deck-nav-m" },
{ module: "mast-sensor-40" },
],
scout: [{ module: "engine-fusion-3" }, { module: "tank-cryo-12" }, { module: "reactor-fusion" }, { module: "adapter-l-m" }, { module: "tank-header-9" }, { module: "habitat-ring-16" }, { module: "pod-medical-m" }, { module: "lab-m" }, { module: "radiator-deployed" }, { module: "deck-nav-m" }, { module: "mast-sensor-40" }],
bulwark: [{ module: "engine-fusion-4" }, { module: "reactor-fusion" }, { module: "truss-l-24" }, { module: "farm-drum" }, { module: "node-four" }, { module: "shield-forward" }],
}
例
import { assemble, SAMPLE_SHIPS } from "@johnmorrisdotca/uchusen-rockets";
console.log(assemble(SAMPLE_SHIPS.hauler).length);201.89999999999998出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。