mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
pack.cells.routes
parent
796832095f
commit
e7fc4018a5
1 changed files with 1 additions and 2 deletions
|
|
@ -94,8 +94,7 @@ World data is mainly stored in typed arrays within `cells` object in both `grid`
|
|||
* `pack.cells.conf`: `number[]` - cells flux amount in confluences. Confluences are cells where rivers meet each other. `Uint16Array`
|
||||
* `pack.cells.harbor`: `number[]` - cells harbor score. Shows how many water cells are adjacent to the cell. Used for scoring. `Uint8Array`
|
||||
* `pack.cells.haven`: `number[]` - cells haven cells index. Each coastal cell has haven cells defined for correct routes building. `Uint16Array` or `Uint32Array` (depending on cells number)
|
||||
* `pack.cells.road`: `number[]` - cells road score. Show whether there is route (inc. searoute) in the cell. `Uint16Array`
|
||||
* `pack.cells.crossroad`: `number[]` - cells crossroad score. Show cells where multiple routes are crossing. `Uint16Array`
|
||||
* `pack.cells.routes`: `object` - cells connections via routes. E.g. `pack.cells.routes[8] = {9: 306, 10: 306}` shows that cell `8` has two route connections - with cell `9` via route `306` and with cell `10` by route `306`
|
||||
* `pack.cells.q`: `object` - quadtree used for fast closest cell detection
|
||||
|
||||
# Secondary data
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue