Пример #1
0
            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);
                }
            }
Пример #2
0
            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);
                }
            }