public void ApplyChanges() { if (solarSystem.seed != AstroUtils.KERBIN_SYSTEM_COORDS && string.IsNullOrEmpty(name)) { SystemNamer.NameBody(this); } else if (!string.IsNullOrEmpty(name)) { planet.bodyName = name; } if (solarSystem.debug) { string output = "Planet: " + name; if (IsSun()) { output = "Star: " + name; } output += ", ID: " + planetID; Debugger.LogWarning(output); } foreach (PlanetRandomizer randomizer in allRandomizers) { randomizer.Apply(); } }
public void RandomizeValues() { foreach (PlanetRandomizer randomizer in allRandomizers) { randomizer.Randomize(); } SystemNamer.RegisterPlanet(this); }
private void ApplySystem() { foreach (PlanetData data in solarSystem) { data.planet.orbitingBodies.Clear(); } SystemNamer.NamePlanets(this); for (int i = 0; i < solarSystem.Count; i++) { solarSystem [i].ApplyChanges(); } }