From 35bd0d3070767548006b583c5e3c02f7f7aaa1d7 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Tue, 12 Sep 2023 12:37:18 +0400 Subject: [PATCH] Created Data model (in progress) (markdown) --- Data-model-(in-progress).md | 158 ++++++++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+) create mode 100644 Data-model-(in-progress).md diff --git a/Data-model-(in-progress).md b/Data-model-(in-progress).md new file mode 100644 index 0000000..01d6065 --- /dev/null +++ b/Data-model-(in-progress).md @@ -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": [[]] + } + } +} +``` \ No newline at end of file