API reference
DebugRound
pixi-reels / debug / DebugRound
Defined in: debug/SpinMetrics.ts:60
A round: everything from one spin:start to the next. A cascade
refill() emits spin:start too, so each refill is its own round, the
same way the engine’s own events count it. A nudge at rest before any
spin opens a round of its own (spin: false).
Properties#
| Property | Type | Description | Defined in |
|---|---|---|---|
allLandedAt | number | null | - | debug/SpinMetrics.ts:70 |
allStartedAt | number | null | - | debug/SpinMetrics.ts:69 |
boosted | boolean | skip:boosted: the first press switched to the fastest profile. | debug/SpinMetrics.ts:79 |
cascadeChains | number | cascade:chain:start count. | debug/SpinMetrics.ts:86 |
completeAt | number | null | - | debug/SpinMetrics.ts:71 |
duration | number | null | SpinResult.duration, once spin:complete fires. | debug/SpinMetrics.ts:73 |
events | number | Events on the set bus and every reel bus this round. | debug/SpinMetrics.ts:84 |
index | number | 1 for the first round this recorder saw. | debug/SpinMetrics.ts:62 |
landOrder | number[] | Reel indices in the order they came to rest. | debug/SpinMetrics.ts:82 |
lastActivityAt | number | Last time the round itself did something, ms since the round opened: its spin, phase and skip events, a win. A set event between rounds (a speed change, removeReels() before the next spin) is counted but does not stretch a round that has settled. | debug/SpinMetrics.ts:95 |
profile | string | Speed profile active when the round opened. | debug/SpinMetrics.ts:68 |
queuedSkipAt | number | null | A requestSkip() that came before the result (skip:queued). | debug/SpinMetrics.ts:77 |
reels | DebugReelRound[] | - | debug/SpinMetrics.ts:80 |
skips | DebugSkipMark[] | - | debug/SpinMetrics.ts:75 |
spin | boolean | false when something other than spin:start opened the round. | debug/SpinMetrics.ts:64 |
startedAt | number | The recorder clock when the round opened. Every other time is relative to it. | debug/SpinMetrics.ts:66 |
wasSkipped | boolean | - | debug/SpinMetrics.ts:74 |
wins | number | win:group count. | debug/SpinMetrics.ts:88 |