Updated Data model (markdown)

Azgaar 2024-10-15 23:27:36 +02:00
parent 1f7ddfef90
commit d6437512a7

@ -194,7 +194,7 @@ Provinces data is stored as an array of objects with strict element order. Eleme
* `fullName`: `string` - full state name. Combination of the proper name and province `formName` * `fullName`: `string` - full state name. Combination of the proper name and province `formName`
* `color`: `string` - province color in hex (e.g. `#45ff12`) or link to hatching pattern (e.g. `url(#hatch7)`) * `color`: `string` - province color in hex (e.g. `#45ff12`) or link to hatching pattern (e.g. `url(#hatch7)`)
* `center`: `number` - cell id of province center (initial cell) * `center`: `number` - cell id of province center (initial cell)
* `pole`: `number[]` - state pole of inaccessibility (visual center) coordinates, see [the concept description](https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc?gi=6bd4fcb9ecc1) * `pole`: `number[]` - province pole of inaccessibility (visual center) coordinates, see [the concept description](https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc?gi=6bd4fcb9ecc1)
* `area`: `number` - province area in pixels * `area`: `number` - province area in pixels
* `burg`: `number` - id of province capital burg if any * `burg`: `number` - id of province capital burg if any
* `burgs`: `number[]` - id of burgs within the province. Optional (added when Province editor is opened) * `burgs`: `number[]` - id of burgs within the province. Optional (added when Province editor is opened)
@ -217,7 +217,6 @@ Religions data is stored as an array of objects with strict element order. Eleme
* `origins`: `number[]` - ids of ancestor religions. `[0]` if religion doesn't have an ancestor. Used to render religions tree. The first array member is main link, other - supporting out-of-tree links * `origins`: `number[]` - ids of ancestor religions. `[0]` if religion doesn't have an ancestor. Used to render religions tree. The first array member is main link, other - supporting out-of-tree links
* `center`: `number` - cell id of religion center (initial cell) * `center`: `number` - cell id of religion center (initial cell)
* `culture`: `number` - religion original culture * `culture`: `number` - religion original culture
* `pole`: `number[]` - state pole of inaccessibility (visual center) coordinates, see [the concept description](https://blog.mapbox.com/a-new-algorithm-for-finding-a-visual-center-of-a-polygon-7c77e6492fbc?gi=6bd4fcb9ecc1)
* `expansionism`: `number` - religion growth multiplier. Used during religion generation to define competitive size * `expansionism`: `number` - religion growth multiplier. Used during religion generation to define competitive size
* `expansion`: `string` - religion expansion type. Can be `culture` so that religion grow only within its culture or `global` * `expansion`: `string` - religion expansion type. Can be `culture` so that religion grow only within its culture or `global`
* `area`: `number` - religion area in pixels * `area`: `number` - religion area in pixels