From 10e5a90aa58d5b25fbd7560a911c54b76949cebc Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sun, 8 Sep 2024 15:39:15 +0200 Subject: [PATCH] Updated Data model (in progress) (markdown) --- Data-model-(in-progress).md | 199 +++++++++++++++++++++--------------- 1 file changed, 115 insertions(+), 84 deletions(-) diff --git a/Data-model-(in-progress).md b/Data-model-(in-progress).md index 1f70f62..eb3d20a 100644 --- a/Data-model-(in-progress).md +++ b/Data-model-(in-progress).md @@ -6,19 +6,24 @@ Relevant links: * [Refactor branch contract changes](https://github.com/Azgaar/Fantasy-Map-Generator/pull/842) Structure: -```yaml +```json { "meta": { "copyright": "Azgaar's Fantasy Map Generator", "license": "MIT", "source": "http://azgaar.github.io/Fantasy-Map-Generator", "seed": "342342342323", - "createdOn": "2023-09-11T23:36:17.227Z", - "updatedOn": "2023-09-11T23:42:31.748Z", - "revision": 2, - "initialVersion": "1.91.12", - "currentVersion": "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" + "initial": { + "timestamp": "2023-09-11T23:36:17.227Z", + "version": "2.1.12", + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)" + }, + "current": { + "timestamp": "2025-02-15T14:42:31.748Z", + "version": "2.126.3", + "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7)", + "revision": 124 + } }, "settings": { "graph": { @@ -70,6 +75,69 @@ Structure: "y": 99 } }, + "military": { + "units": { + "0": { + "name": "infantry" + } + } + }, + "world": { + "name": "Narnia", + "calendar": { + "year": 2024, + "era": "Test Era", + "eraShort": "TE" + }, + "climate": { + "temperature": { + "equator": 30, + "northPole": -30, + "southPole": -25 + }, + "winds": [ + 225, + 45, + 225, + 315, + 135, + 315 + ], + "precipitation": 100 + }, + "geography": { + "mapSize": 11, + "latitudeShift": 50, + "coordinates": { + "latN": 34 + } + }, + "units": { + "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 + } + } + } + }, "layers": { "heightmap": false, "states": true @@ -79,102 +147,65 @@ Structure: "scaleBar": { "size": 2, "backOpacity": 0.2, - "backColor": "#ffffff", + "backColor": "#ffffff" } }, - "world": { - "name": "Narnia", - "calendar": { - "year": 2024, - "era": "Test Era", - "eraShort": "TE" - }, - "climate": { - "temperature": { - "equator": 30, - "northPole": -30, - "southPole": -25 + "data": { + "grid": { + "cells": { + "i": [], + "temp": [] }, - "winds": [225,45,225,315,135,315], - "precipitation": 100 - }, - "geography": { - "mapSize": 11, - "latitudeShift": 50, - "coordinates": { - "latN": 34 + "vertices": { + "c": [ + [] + ] } }, - "measurements": { - "distance": { - "unit": "m", - "scale": 3 + "pack": { + "cells": { + "i": [], + "g": [], + "state": [], + "culture": [] }, - "area": { - "unit": "square", - "scale": 1 - }, - "height": { - "unit": "ft", - "exponent": 2 - }, - "temperature": { - "unit": "°C", - "scale": 1 - }, - "population": { - "scale": 1000, - "urbanization": { - "rate": 1, - "density": 10 - } - } - }, - "rulers": { - "0": { - "i": 0, - "type": "ruler", - "points": [[0,0],[642,17]], - } - }, - "military": { - "units": { - "0": { - "name": "infantry" - } + "vertices": { + "c": [ + [] + ] } }, "biomes": { "0": { "name": "Marine", - "isCustom": false - } + "isCustom": false, + "cells": 354 + }, + "1": {} }, "states": { "0": {}, "1": {} }, + "cultures": {}, "notes": { "0": {} - } - }, - "grid": { - "cells": { - "i": [], - "temp": [] }, - "vertices": { - "c": [[]] - } - }, - "pack": { - "cells": { - "i": [], - "g": [], - "states": [] - }, - "vertices": { - "c": [[]] + "rulers": { + "0": { + "i": 0, + "type": "ruler", + "points": [ + [ + 0, + 0 + ], + [ + 642, + 17 + ] + ] + } } } }