Updated Data model (in progress) (markdown)

Azgaar 2023-09-12 13:12:39 +04:00
parent 169555a196
commit 78a4f43b2a

@ -3,7 +3,7 @@ In this document I would like to outline the expected data structure.
Relevant links: Relevant links:
* [Current data model](https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Data-model) * [Current data model](https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Data-model)
* [Trello ticket](https://trello.com/c/IWltiMC2/902-rework-save-data-format) * [Trello ticket](https://trello.com/c/IWltiMC2/902-rework-save-data-format)
* [Refactro branch contract changes](https://github.com/Azgaar/Fantasy-Map-Generator/pull/842) * [Refactor branch contract changes](https://github.com/Azgaar/Fantasy-Map-Generator/pull/842)
Structure: Structure:
```yaml ```yaml
@ -31,7 +31,7 @@ Structure:
"heightmap": { "heightmap": {
"template": "Volcano", "template": "Volcano",
"isRandom": false, "isRandom": false,
"isCrecreated": false, "isPrecreated": false,
"isCustom": false "isCustom": false
}, },
"cultures": { "cultures": {
@ -52,23 +52,38 @@ Structure:
"ratio": 30 "ratio": 30
}, },
"burgs": { "burgs": {
"limit": null "limit": null,
"showMfcgMap": true
}, },
"religions": { "religions": {
"limit": 7 "limit": 7
}, },
"labels": {
"autoHide": true,
"rescaleOnZoom": true
},
"notes": { "notes": {
"pinned": false "pinned": false
}, },
"showMfcgMap": true,
"scaleBar": { "scaleBar": {
"size": 2 "label": "",
"position": {
"x": 99,
"y": 99
}
}, },
"layers": { "layers": {
"heightmap": false, "heightmap": false,
"states": true "states": true
} }
}, },
"style": {
"scaleBar": {
"size": 2,
"backOpacity": 0.2,
"backColor": "#ffffff",
}
},
"world": { "world": {
"name": "Narnia", "name": "Narnia",
"calendar": { "calendar": {
@ -82,10 +97,12 @@ Structure:
"northPole": -30, "northPole": -30,
"southPole": -25 "southPole": -25
}, },
"winds": [], "winds": [225, 45, 225, 315, 135, 315],
"precipitation": 100 "precipitation": 100
}, },
"geography": { "geography": {
"mapSize": 11,
"latitudeShift": 50,
"coordinates": { "coordinates": {
"latN": 34 "latN": 34
} }