mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 10:01:23 +01:00
Zones
parent
7501f7ccc2
commit
135559347f
1 changed files with 10 additions and 0 deletions
|
|
@ -271,6 +271,16 @@ Routes data is stored as an ordered array of objects (so element id is the array
|
|||
* `name`: `string` - route name. Optional
|
||||
* `lock`: `boolean` - `true` if route is locked (not affected by regeneration). Optional
|
||||
|
||||
## Zones
|
||||
Zones data is stored as an array of objects with `i` not necessary equal to the element index, but order of element defines the rendering order and is important. Object structure:
|
||||
* `i`: `number` - zone id. Please note the element with id `0` is a fully valid zone, not a placeholder
|
||||
* `name`: `string` - zone description
|
||||
* `type`: `string` - zone type
|
||||
* `color`: `string` - link to hatching pattern (e.g. `url(#hatch7)`) or color in hex (e.g. `#45ff12`)
|
||||
* `cells`: `number[]` - array of zone cells
|
||||
* `lock`: `boolean` - `true` if zone is locked (not affected by regeneration). Optional
|
||||
* `hidden`: `boolean` - `true` if zone is hidden (not displayed). Optional
|
||||
|
||||
# Secondary global data
|
||||
Secondary data exposed to global space.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue