queueInputEdgefunction
Queues a one-shot rotation, drop, Place, pause or resume edge for the next logical tick.
Import it
import { queueInputEdge } from "@johnmorrisdotca/houseki/colour-chains";
Definition
function queueInputEdge(state: InputSchedulerState, action: EdgeAction): InputSchedulerState
Parameters
| Name | Type | Description |
|---|---|---|
state | InputSchedulerState | The immutable native state to read or transition; the input is retained. |
action | EdgeAction | One native action for this entry point; inspect accepted and reason on the result. |
Returns
InputSchedulerState
Queues a one-shot rotation, drop, Place, pause or resume edge for the next logical tick.
Examples
import { createInputScheduler, queueInputEdge } from "@johnmorrisdotca/houseki/colour-chains";
const input=createInputScheduler();
console.log(queueInputEdge(input,{kind:"hard-drop"}));{ held: {}, queued: [ { kind: 'hard-drop' } ] }What it prints (run when this page was built)