pixi-reels

columnTargetToStrip()

pixi-reels


pixi-reels / index / columnTargetToStrip

Function: columnTargetToStrip()

function columnTargetToStrip(target: ColumnTarget, bufferStart: number): (string | undefined)[];

Defined in: frame/ColumnTarget.ts:85

Materialize a ColumnTarget into strip form: one entry per strip slot, top to bottom. Index 0 is the furthest buffer-above cell, index bufferStart is the first visible cell, and the tail holds buffer-below cells. This is the same indexing FrameBuilder.build returns and Reel.placeStrip consumes.

Entries the target does not specify come back undefined; the caller decides what to do with them (the engine random-fills).

bufferStart is the reel’s buffer-above capacity. Target entries past it cannot reach the strip and are dropped here. assertBufferCountsInRange rejects them at the public entry points so that drop is never silent.

Parameters#

ParameterType
targetColumnTarget
bufferStartnumber

Returns#

(string | undefined)[]