Reference · Rockets, variants, parts and the fit check
Spintype
The slow turn of a rocket: the seconds a full turn takes (0 is none) and which way.
Import it
import type { Spin } from "@johnmorrisdotca/uchusen-rockets";
Definition
interface Spin {
seconds: number;
way: Way;
}
Members
| Name | Type | Description |
|---|---|---|
seconds | number | Seconds a turn, 0 for not at all. |
way | Way |
Examples
import { DEFAULT_SPIN, type Spin } from "@johnmorrisdotca/uchusen-rockets";
const spin: Spin = DEFAULT_SPIN;
console.log(spin.seconds, spin.way);180 cwWhat it prints (run when this page was built)