mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
Updated Data model (markdown)
parent
059628d209
commit
c5f0929322
1 changed files with 11 additions and 0 deletions
|
|
@ -222,6 +222,17 @@ Rivers data is stored as an unordered array of objects (so element id is _not_ t
|
|||
* `width`: `number` - river mouth width in km
|
||||
* `sourceWidth`: `number` - additional width added to river source on rendering. Used to make lake outlets start with some width depending on flux. Can be also used to manually create channels
|
||||
|
||||
## Markers [WIP]
|
||||
Markers data is stored as an unordered array of objects (so element id is _not_ the array index). Object structure:
|
||||
* `i`: `number` - marker id. `'markerElement' + i` is used as marker element id and reference in `notes` object
|
||||
* `icon`: `number` - unicode character
|
||||
* `type`: `string` - optional, used only for auto-generated markers
|
||||
* `x`: `number` - marker x coordinate
|
||||
* `y`: `number` - marker y coordinate
|
||||
* `dx`: `number` - marker icon x shift
|
||||
* `dy`: `number` - marker icon y shift
|
||||
* `size`: `number` - marker icon size
|
||||
|
||||
## Routes
|
||||
Routes data is not in data model, but can be retrieved directly from svg `routes` element and `pack.cells.roads` array.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue