Skip to content

movePileTop

movePileTop(world, from, to, count?): EntityId[]

Defined in: src/modules/pile/pile.ts:161

Move the top count entities of from onto to, keeping their order — a draw, or a run of cards moved as one. Moves fewer when from holds fewer. Returns the moved entities, bottom first.

EcsWorld

EntityId

EntityId

number = 1

EntityId[]