Reference · Rockets, variants, parts and the fit check
dutyOffunction
Which job a material's glow has. A name that is not a lamp is engine glow, and follows the Engines switch.
Import it
import { dutyOf } from "@johnmorrisdotca/uchusen-rockets";
Definition
function dutyOf(material: string): LampDuty
Parameters
| Name | Type | Description |
|---|---|---|
material | string | A material name. |
Returns
LampDuty
running (steady), flash (the white anti-collision), beacon (the slow red), work (floods, pools, docking and work lamps) or engine.
Examples
import { dutyOf } from "@johnmorrisdotca/uchusen-rockets";
console.log(dutyOf("nav-red"), dutyOf("strobe"), dutyOf("steel"));running flash engineWhat it prints (run when this page was built)