pixi-reels

HwCoin\<TData\>

pixi-reels


pixi-reels / index / HwCoin

Interface: HwCoin<TData>

Defined in: board/HwTypes.ts:22

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:23
data?publicTDataboard/HwTypes.ts:25
idreadonlystringboard/HwTypes.ts:24