pixi-reels

HorizontalReelEvents

pixi-reels


pixi-reels / index / HorizontalReelEvents

Type Alias: HorizontalReelEvents

type HorizontalReelEvents = {
  cascade:complete: [{
     symbols: string[];
     winners: number[];
  }];
  spin:complete: [SpinResult];
  spin:start: [];
};

Defined in: horizontal/HorizontalReelTypes.ts:36

Typed events emitted by HorizontalReel — mirrors the ReelSet names + shapes.

Properties

PropertyTypeDescriptionDefined in
cascade:complete[{ symbols: string[]; winners: number[]; }]A cascade finished: winners cells fell away and were replaced.horizontal/HorizontalReelTypes.ts:45
spin:complete[SpinResult]The reel landed. Payload is the engine’s SpinResult; for this single reel symbols is a one-column grid ([[...visible]]).horizontal/HorizontalReelTypes.ts:43
spin:start[]The reel started spinning.horizontal/HorizontalReelTypes.ts:38