Reference · Rockets, variants, parts and the fit check
PlayFrametype
One moment of the build: the story day, the slots that are finished, and the slots that are being built.
Import it
import type { PlayFrame } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface PlayFrame {
day: number;
total: number;
done: readonly string[];
going: readonly string[];
}
Members
| Name | Type | Description |
|---|---|---|
day | number | Days after the keel was laid. |
total | number | Days from the keel to the first flight. |
done | readonly string[] | Slots whose step has finished. |
going | readonly string[] | Slots whose step has started and not finished. |
Examples
import { playFrame, type PlayFrame } from "@johnmorrisdotca/uchusen-rockets";
const frame: PlayFrame = playFrame([{ slot: "drive", start: 0, days: 10 }], 1);
console.log(frame.done.join(","));driveWhat it prints (run when this page was built)