mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-18 18:11:24 +01:00
Created Data model (in progress) (markdown)
parent
05b0d69462
commit
35bd0d3070
1 changed files with 158 additions and 0 deletions
158
Data-model-(in-progress).md
Normal file
158
Data-model-(in-progress).md
Normal file
|
|
@ -0,0 +1,158 @@
|
||||||
|
In this document I would like to outline the expected data structure.
|
||||||
|
|
||||||
|
Relevant links:
|
||||||
|
* [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)
|
||||||
|
|
||||||
|
Structure:
|
||||||
|
```yaml
|
||||||
|
{
|
||||||
|
"meta": {
|
||||||
|
"seed": "342342342323",
|
||||||
|
"generatedAt": 1694475377227,
|
||||||
|
"savedAt": 1694475751748,
|
||||||
|
"revision": 2,
|
||||||
|
"version": {
|
||||||
|
"initial": "1.91.12",
|
||||||
|
"current": "1.93.03"
|
||||||
|
},
|
||||||
|
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36",
|
||||||
|
"copyright": "Azgaar's Fantasy Map Generator",
|
||||||
|
"license": "MIT",
|
||||||
|
"source": "http://azgaar.github.io/Fantasy-Map-Generator"
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"graph": {
|
||||||
|
"width": 1280,
|
||||||
|
"heigh": 740,
|
||||||
|
"points": 50000
|
||||||
|
},
|
||||||
|
"heightmap": {
|
||||||
|
"template": "Volcano",
|
||||||
|
"isRandom": false,
|
||||||
|
"isCrecreated": false,
|
||||||
|
"isCustom": false
|
||||||
|
},
|
||||||
|
"cultures": {
|
||||||
|
"set": "Oriental",
|
||||||
|
"limit": 11,
|
||||||
|
"sizeVariety": 2,
|
||||||
|
"growthRate": 1.3
|
||||||
|
},
|
||||||
|
"states": {
|
||||||
|
"limit": 14,
|
||||||
|
"sizeVariety": 2,
|
||||||
|
"growthRate": 3,
|
||||||
|
"labels": {
|
||||||
|
"mode": "auto"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"provinces": {
|
||||||
|
"ratio": 30
|
||||||
|
},
|
||||||
|
"burgs": {
|
||||||
|
"limit": null
|
||||||
|
},
|
||||||
|
"religions": {
|
||||||
|
"limit": 7
|
||||||
|
},
|
||||||
|
"notes": {
|
||||||
|
"pinned": false
|
||||||
|
},
|
||||||
|
"showMfcgMap": true,
|
||||||
|
"scaleBar": {
|
||||||
|
"size": 2
|
||||||
|
},
|
||||||
|
"layers": {
|
||||||
|
"heightmap": false,
|
||||||
|
"states": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"world": {
|
||||||
|
"name": "Narnia",
|
||||||
|
"calendar": {
|
||||||
|
"year": 2024,
|
||||||
|
"era": "Test Era",
|
||||||
|
"eraShort": "TE"
|
||||||
|
},
|
||||||
|
"climate": {
|
||||||
|
"temperature": {
|
||||||
|
"equator": 30,
|
||||||
|
"northPole": -30,
|
||||||
|
"southPole": -25
|
||||||
|
},
|
||||||
|
"winds": [],
|
||||||
|
"precipitation": 100
|
||||||
|
},
|
||||||
|
"geography": {
|
||||||
|
"coordinates": {
|
||||||
|
"latN": 34
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"measurements": {
|
||||||
|
"distance": {
|
||||||
|
"unit": "m",
|
||||||
|
"scale": 3
|
||||||
|
},
|
||||||
|
"area": {
|
||||||
|
"unit": "square",
|
||||||
|
"scale": 1
|
||||||
|
},
|
||||||
|
"height": {
|
||||||
|
"unit": "ft",
|
||||||
|
"exponent": 2
|
||||||
|
},
|
||||||
|
"temperature": {
|
||||||
|
"unit": "°C",
|
||||||
|
"scale": 1
|
||||||
|
},
|
||||||
|
"population": {
|
||||||
|
"scale": 1000,
|
||||||
|
"urbanization": {
|
||||||
|
"rate": 1,
|
||||||
|
"density": 10
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"military": {
|
||||||
|
"units": {
|
||||||
|
"0": {
|
||||||
|
"name": "infantry"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"biomes": {
|
||||||
|
"0": {
|
||||||
|
"name": "Marine",
|
||||||
|
"isCustom": false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"states": {
|
||||||
|
"0": {},
|
||||||
|
"1": {}
|
||||||
|
},
|
||||||
|
"notes": {
|
||||||
|
"0": {}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"grid": {
|
||||||
|
"cells": {
|
||||||
|
"i": [],
|
||||||
|
"temp": []
|
||||||
|
},
|
||||||
|
"vertices": {
|
||||||
|
"c": [[]]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"pack": {
|
||||||
|
"cells": {
|
||||||
|
"i": [],
|
||||||
|
"g": [],
|
||||||
|
"states": []
|
||||||
|
},
|
||||||
|
"vertices": {
|
||||||
|
"c": [[]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue