@ue-too/board-game-engine / index / createHexGrid
函式: createHexGrid()
createHexGrid(
coordinator,width,height,name,variant):number
定義於: grid-system/hex-grid.ts:49
Creates a hexagonal grid with offset coordinates (q, r).
參數
coordinator
Coordinator
The ECS coordinator
width
number
The width of the grid (q dimension)
height
number
The height of the grid (r dimension)
name
string
The name of the grid
variant
HexGridVariant = 'odd-r'
The offset coordinate variant: 'odd-r', 'even-r', 'odd-q', or 'even-q'
回傳
number
The grid entity