示例#1
0
            // Properties requires a celestial body referece, as this class is designed to edit the body
            public Properties(CelestialBody celestialBody)
            {
                this.celestialBody = celestialBody;

                // We require a science values object
                if (this.celestialBody.scienceValues == null)
                {
                    this.celestialBody.scienceValues = new CelestialBodyScienceParams();
                }

                // Create the science values cache
                scienceValues = new ScienceValues(this.celestialBody.scienceValues);
            }
示例#2
0
            // Properties requires a celestial body referece, as this class is designed to edit the body
            public Properties (CelestialBody celestialBody)
            {
                this.celestialBody = celestialBody;

                // We require a science values object
                if (this.celestialBody.scienceValues == null) 
                    this.celestialBody.scienceValues = new CelestialBodyScienceParams ();
                
                // Create the science values cache
                scienceValues = new ScienceValues (this.celestialBody.scienceValues);
            }