Data structure for Pixel roll state events, see PixelEventMap.

interface RollEvent {
    face: number;
    faceIndex: number;
    state: "unknown" | "handling" | "rolling" | "crooked" | "onFace";
}

Properties

Properties

face: number

The value of the die face that is currently facing up.

Remarks

Fudge die will return -1, 0 or 1.

faceIndex: number

The 0-based index of the die face that is currently facing up.

See

PixelInfo.currentFaceIndex for more details.

state: "unknown" | "handling" | "rolling" | "crooked" | "onFace"

The roll state of the Pixel when this event was raised.

Generated using TypeDoc