public PlanetSettings(CelestialBody body) : this() { GeeASL = body.GeeASL; ocean = body.ocean; atmosphere = body.atmosphere; atmosphereContainsOxygen = body.atmosphereContainsOxygen; atmosphereDepth = body.atmosphereDepth; atmosphereTemperatureSeaLevel = body.atmosphereTemperatureSeaLevel; atmosphereTemperatureLapseRate = body.atmosphereTemperatureLapseRate; atmospherePressureSeaLevel = body.atmospherePressureSeaLevel; atmDensityASL = body.atmDensityASL; atmosphereGasMassLapseRate = body.atmosphereGasMassLapseRate; atmosphereMolarMass = body.atmosphereMolarMass; atmosphereAdiabaticIndex = body.atmosphereAdiabaticIndex; radiusAtmoFactor = body.radiusAtmoFactor; atmosphereUsePressureCurve = body.atmosphereUsePressureCurve; atmospherePressureCurveIsNormalized = body.atmospherePressureCurveIsNormalized; atmospherePressureCurve = body.atmospherePressureCurve; atmosphereUseTemperatureCurve = body.atmosphereUseTemperatureCurve; atmosphereTemperatureCurveIsNormalized = body.atmosphereTemperatureCurveIsNormalized; atmosphereTemperatureCurve = body.atmosphereTemperatureCurve; atmosphereTemperatureSunMultCurve = body.atmosphereTemperatureSunMultCurve; rotates = body.rotates; rotationPeriod = body.rotationPeriod; initialRotation = body.initialRotation; tidallyLocked = body.tidallyLocked; orbit = body.orbitDriver?.orbit.Clone(); if (DefaultSettings.ContainsKey(body.bodyName) == false) { DefaultSettings.Add(body.bodyName, this); } }
public PlanetSettings(CelestialBody body) : this() { GeeASL = body.GeeASL; ocean = body.ocean; atmosphere = body.atmosphere; atmosphereContainsOxygen = body.atmosphereContainsOxygen; atmosphereDepth = body.atmosphereDepth; atmosphereTemperatureSeaLevel = body.atmosphereTemperatureSeaLevel; atmospherePressureSeaLevel = body.atmospherePressureSeaLevel; atmosphereMolarMass = body.atmosphereMolarMass; atmosphereAdiabaticIndex = body.atmosphereAdiabaticIndex; rotates = body.rotates; rotationPeriod = body.rotationPeriod; initialRotation = body.initialRotation; tidallyLocked = body.tidallyLocked; orbit = body.orbitDriver?.orbit.Clone(); if (DefaultSettings.ContainsKey(body.bodyName) == false) { DefaultSettings.Add(body.bodyName, this); } }
/// <summary> /// helper function to add a setting to our list /// </summary> /// <param name="name"></param> /// <param name="value"></param> /// <param name="tooltip"></param> private void AddSetting(string name, string value, string tooltip) { DefaultSettings.Add(new DefaultSetting(name, value, tooltip)); }