Skip to content

useTileCoordinates

useTileCoordinates(entity): { key: string; q: number; r: number; } | undefined

Defined in: src/react/react.ts:840

Read axial coordinates for one tile entity.

Entity | null | undefined

{ key: string; q: number; r: number; }

key: string = ''

Stable axial key in q,r form.

q: number = 0

Axial q coordinate.

r: number = 0

Axial r coordinate.


undefined