pixi-reels

HwCoin\<TData = `unknown`\>

pixi-reels


pixi-reels / index / HwCoin

Interface: HwCoin<TData = unknown>

Defined in: board/HwTypes.ts:23

A coin somewhere on the board. id selects the registered symbol art; data is an opaque game-layer payload the board never interprets.

Ownership contract: cell and id belong to the board - treat them as read-only; the board keys its ledger by cell and mutating them is undefined. data is yours: mutate its contents freely (a doubler does coin.data.value *= 2), that is the intended way to carry live game state on a locked coin.

Type Parameters#

Type ParameterDefault type
TDataunknown

Properties#

PropertyModifierTypeDefined in
cellreadonlyHwCellboard/HwTypes.ts:24
data?publicTDataboard/HwTypes.ts:26
idreadonlystringboard/HwTypes.ts:25