Reference · Rockets, variants, parts and the fit check
playFramefunction
The build at at, from 0 when the keel is laid to 1 when the ship flies.
Import it
import { playFrame } from "@johnmorrisdotca/uchusen-rockets";
Definition
function playFrame(steps: readonly PlayStep[], at: number): PlayFrame
Parameters
| Name | Type | Description |
|---|---|---|
steps | readonly PlayStep[] | The ship's build order. |
at | number | How far through the build, from 0 to 1. |
Returns
PlayFrame
The story day and which slots are finished or underway.
Examples
import { buildOf, playFrame } from "@johnmorrisdotca/uchusen-rockets";
const steps = buildOf("miyamoto");
console.log(steps ? playFrame(steps, 0).going[0] : "");driveWhat it prints (run when this page was built)