Reference · Rockets, variants, parts and the fit check
Carrytype
One drone, where it is, and the point its beam aims at.
Import it
import type { Carry } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Carry {
drone: number;
slot: string;
part: [
number,
number,
number
];
where: [
number,
number,
number
];
duty: "work" | "transit" | "berth";
rank: Rank;
task: CrewTask;
}
Members
| Name | Type | Description |
|---|---|---|
drone | number | |
slot | string | |
part | [number, number, number] | Where the beam aims: the part, where it is being built. |
where | [number, number, number] | Where the drone is. |
duty | "work" | "transit" | "berth" | Working a part, flying out to fetch a shop-sized piece, or charging at a berth. |
rank | Rank | |
task | CrewTask |
Examples
import type { Carry } from "@johnmorrisdotca/uchusen-rockets";
const carry: Carry = { drone: 0, slot: "drive", part: [10, 0, 0], where: [14, 0, 6], duty: "work", rank: "builder", task: "weld" };
console.log(carry.slot);driveWhat it prints (run when this page was built)