Skip to content
On this page

Interface: HexStore<T> ​

Type parameters ​

NameType
Textends Hex

Hierarchy ​

Table of contents ​

Properties ​

Methods ​

Properties ​

size ​

Readonly size: number

Defined in ​

grid/types.ts:45

Methods ​

getHex ​

getHex(coordinates): undefined | T

Parameters ​

NameType
coordinatesHexCoordinates

Returns ​

undefined | T

Defined in ​

grid/types.ts:46


hasHex ​

hasHex(hex): boolean

Parameters ​

NameType
hexT

Returns ​

boolean

Defined in ​

grid/types.ts:47


setHexes ​

setHexes(hexesOrCoordinates): HexStore<T>

Parameters ​

NameType
hexesOrCoordinatesIterable<HexCoordinates | T>

Returns ​

HexStore<T>

Defined in ​

grid/types.ts:48

Released under the MIT License.