From 1a18412eff0959d5a57efffad67ea9dfde7fcbe8 Mon Sep 17 00:00:00 2001 From: Krafpy Date: Sat, 20 Aug 2022 21:18:39 +0200 Subject: [PATCH] Reordering sun parameters. --- data/jnsq/bodies.yml | 2 +- dist/tools/cfg-to-yml/dump.js | 2 +- src/tools/cfg-to-yml/dump.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/jnsq/bodies.yml b/data/jnsq/bodies.yml index 7152381..3e4900d 100644 --- a/data/jnsq/bodies.yml +++ b/data/jnsq/bodies.yml @@ -2,9 +2,9 @@ - !!map id: 0 - atmosphereAlt: 800000 name: Sun radius: 175750000 + atmosphereAlt: 800000 mass: 1.2571450461925315e+29 stdGravParam: 8390563181802812000 soi: .inf diff --git a/dist/tools/cfg-to-yml/dump.js b/dist/tools/cfg-to-yml/dump.js index e150a85..f8997dc 100644 --- a/dist/tools/cfg-to-yml/dump.js +++ b/dist/tools/cfg-to-yml/dump.js @@ -22,9 +22,9 @@ export function dumpBodyToYaml(body) { export function dumpSunToYaml(sun) { const text = `- !!map\n` + ` id: ${sun.id}\n` + - (sun.atmosphereAlt ? ` atmosphereAlt: ${sun.atmosphereAlt}\n` : "") + ` name: ${sun.name}\n` + ` radius: ${sun.radius}\n` + + (sun.atmosphereAlt ? ` atmosphereAlt: ${sun.atmosphereAlt}\n` : "") + ` mass: ${sun.mass}\n` + ` stdGravParam: ${sun.stdGravParam}\n` + ` soi: .inf\n` + diff --git a/src/tools/cfg-to-yml/dump.ts b/src/tools/cfg-to-yml/dump.ts index 6203265..8499ee3 100644 --- a/src/tools/cfg-to-yml/dump.ts +++ b/src/tools/cfg-to-yml/dump.ts @@ -28,9 +28,9 @@ export function dumpSunToYaml(sun: ICelestialBody){ const text = `- !!map\n` + ` id: ${sun.id}\n` + - (sun.atmosphereAlt ? ` atmosphereAlt: ${sun.atmosphereAlt}\n` : "") + ` name: ${sun.name}\n` + ` radius: ${sun.radius}\n` + + (sun.atmosphereAlt ? ` atmosphereAlt: ${sun.atmosphereAlt}\n` : "") + ` mass: ${sun.mass}\n` + ` stdGravParam: ${sun.stdGravParam}\n` + ` soi: .inf\n` +