TestReelSetHandle
pixi-reels / testing / TestReelSetHandle
Interface: TestReelSetHandle
Defined in: testing/testHarness.ts:48
Properties
| Property | Type | Defined in |
|---|---|---|
reelSet | ReelSet | testing/testHarness.ts:49 |
ticker | FakeTicker | testing/testHarness.ts:50 |
Methods
advance()
advance(ms: number, stepMs?: number): void;
Defined in: testing/testHarness.ts:52
Advance the ticker by ms milliseconds.
Parameters
| Parameter | Type |
|---|---|
ms | number |
stepMs? | number |
Returns
void
destroy()
destroy(): void;
Defined in: testing/testHarness.ts:60
Destroy the reel set.
Returns
void
spinAndLand()
spinAndLand(grid: SpinAndLandGrid): Promise<SpinResult>;
Defined in: testing/testHarness.ts:58
Run one full spin that lands on grid. Uses slamStop() for deterministic
synchronous completion. Accepts plain visible-cells string[][], or the
explicit ColumnTarget[] shape (use the latter to target buffer cells).
Parameters
| Parameter | Type |
|---|---|
grid | SpinAndLandGrid |
Returns
Promise<SpinResult>