RollEvent: Readonly<{
    face: number;
    faceIndex: number;
    state: PixelRollState;
}>

Data structure for Pixel roll state events, see PixelEventMap.

Type declaration

  • face: number

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

    Fudge die will return -1, 0 or 1.

  • faceIndex: number

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

    PixelInfo.currentFaceIndex for more details.

  • state: PixelRollState

    The roll state of the Pixels die when this event was raised.