Reference · Rockets, variants, parts and the fit check
groundedfunction
Whether slot may stand in the picture. A part waits until the part it stands on has finished, and that one waits the same way. A slot with no mount may stand.
Import it
import { grounded } from "@johnmorrisdotca/uchusen-rockets";
Definition
function grounded(slot: string, done: readonly string[]): boolean
Parameters
| Name | Type | Description |
|---|---|---|
slot | string | The slot. |
done | readonly string[] | Slots whose step has finished. |
Returns
boolean
True when every part it stands on is finished.
Examples
import { grounded } from "@johnmorrisdotca/uchusen-rockets";
console.log(grounded("habitat", ["drive", "engineering", "fuel-aft", "fuel-fore"]));
console.log(grounded("radiators-dorsal", ["drive"]));true
falseWhat it prints (run when this page was built)