InsetPart型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
One numbered sub-part of an inset: its number, name, what it does, its size in metres (width, height, depth), where it sits in the assembled inset and how to draw it.
インポート
import type { InsetPart } from "@johnmorrisdotca/uchusen-rockets";
定義
interface InsetPart {
n: number;
name: string;
does: string;
size: readonly [
number,
number,
number
];
at: Vec3;
pieces: () => Piece[];
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
n | number | |
name | string | |
does | string | |
size | readonly [number, number, number] | Width, height and depth in metres. |
at | Vec3 | The middle of its base in the assembled inset, in metres. |
pieces | () => Piece[] |
例
import { INSETS, type InsetPart } from "@johnmorrisdotca/uchusen-rockets";
const part: InsetPart = INSETS["reactor-core"].parts[0];
console.log(part.n, part.name, part.size);1 Toroidal field coil [ 8, 3, 8 ]出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。