PR pixi-reels

DebugSnapshot

pixi-reels


pixi-reels / index / DebugSnapshot

Interface: DebugSnapshot

Defined in: debug/debug.ts:16

Debug snapshot. plain JSON representation of the entire reel state.

Designed for AI agents that cannot see the canvas. Returns no PixiJS display objects, only serializable data.

Breaking note (since v0.3): visibleRows is now number[] (one entry per reel) so jagged shapes (pyramids, MultiWays) are representable. For uniform slots every entry is the same value. Adapt downstream code that deep-reads the snapshot.

Properties

PropertyTypeDefined in
availableSpeedsstring[]debug/debug.ts:20
currentSpeedstringdebug/debug.ts:19
gridstring[][]debug/debug.ts:25
isSpinningbooleandebug/debug.ts:18
reelCountnumberdebug/debug.ts:22
reelsDebugReelSnapshot[]debug/debug.ts:24
spotlightActivebooleandebug/debug.ts:21
timestampnumberdebug/debug.ts:17
visibleRowsnumber[]debug/debug.ts:23