// 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); }
// 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); }