mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-19 02:21:24 +01:00
Updated Object Model (markdown)
parent
ab7323d2e1
commit
03d561bde4
1 changed files with 22 additions and 1 deletions
|
|
@ -75,7 +75,28 @@ World data is mainly stored in typed arrays within `cells` object in both `grid`
|
|||
* `grid.cells.prec`: `number[]` - cells precipitation in unspecified scale. `Uint8Array`
|
||||
|
||||
### Pack object
|
||||
---
|
||||
* `pack.cells.h`: `number[]` - cells elevation in `[0, 100]` range, where `20` is the minimal land elevation. `Uint8Array`
|
||||
* `pack.cells.f`: `number[]` - indexes of feature. `Uint16Array` or `Uint32Array` (depending on cells number)
|
||||
* `pack.cells.t`: `number[]` - distance field. `1, 2, ...` - land cells, `-1, -2, ...` - water cells, `0` - unmarked cell. `Uint8Array`
|
||||
* `pack.cells.s`: `number[]` - cells score. Scoring is used to define best cells to place a burg. `Uint16Array`
|
||||
* `pack.cells.biome`: `number[]` - cells biome index. `Uint8Array`
|
||||
* `pack.cells.burg`: `number[]` - cells burg index. `Uint16Array`
|
||||
* `pack.cells.culture`: `number[]` - cells culture index. `Uint16Array`
|
||||
* `pack.cells.state`: `number[]` - cells state index. `Uint16Array`
|
||||
* `pack.cells.province`: `number[]` - cells province index. `Uint16Array`
|
||||
* `pack.cells.religion`: `number[]` - cells religion index. `Uint16Array`
|
||||
* `pack.cells.area`: `number[]` - cells area in pixels. `Uint16Array`
|
||||
* `pack.cells.pop`: `number[]` - cells population. `Float32Array`, not rounded to not lose population of high population rate
|
||||
|
||||
* `pack.cells.r`: `number[]` - cells river index. `Uint16Array`
|
||||
* `pack.cells.fl`: `number[]` - cells flux amount. Defines how much water flow through the cell. Use to get rivers data and score cells. `Uint16Array`
|
||||
* `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.q`: `object` - quadtree used for fast closest cell detection
|
||||
|
||||
# Secondary pack data
|
||||
Secondary data available as a part of the `pack` object.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue