Reference · Rockets, variants, parts and the fit check
motionsOffunction
The motions of one rocket: empty for a rocket with none.
Import it
import { motionsOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function motionsOf(rocket: string): Motion[]
Parameters
| Name | Type | Description |
|---|---|---|
rocket | string | A rocket's registry id. |
Returns
Motion[]
Its motions, in table order.
Examples
import { motionsOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(motionsOf("fleet-ship-01").length, motionsOf("starship").length);7 0What it prints (run when this page was built)