Reference · Rockets, variants, parts and the fit check
HullMarktype
One place a ship carries its lettering. place.height is the registry's cap height in metres. main is the name and the registry; repeat is the registry alone.
Import it
import type { HullMark } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface HullMark {
id: string;
side: "port" | "starboard" | "dorsal";
role: "main" | "repeat";
raise: number;
place: MarkingPlace;
}
Members
| Name | Type | Description |
|---|---|---|
id | string | |
side | "port" | "starboard" | "dorsal" | |
role | "main" | "repeat" | |
raise | number | How far the white field stands out of the hull, in metres. |
place | MarkingPlace |
Examples
import { HULL_MARKS, type HullMark } from "@johnmorrisdotca/uchusen-rockets";
const main: HullMark = HULL_MARKS.kaminari.filter((mark) => mark.role === "main")[0];
console.log(main.side, main.place.height > 1);starboard trueWhat it prints (run when this page was built)