public MyObjectBuilder_PluginSettings() { Enable = false; if (MySettings.Static != null) { if (MySettings.Static.Settings != null) { GeneratorSettings = MySettings.Static.Settings.GeneratorSettings.copy(); } else { GeneratorSettings = new GeneratorSettings(); } } }
public GeneratorSettings copy() { GeneratorSettings g = new GeneratorSettings(); g.MinObjectsInSystem = MinObjectsInSystem; g.MaxObjectsInSystem = MaxObjectsInSystem; g.MinOrbitDistance = MinOrbitDistance; g.MaxOrbitDistance = MaxOrbitDistance; g.AsteroidGenerator = AsteroidGenerator; g.AsteroidDensity = AsteroidDensity; g.PlanetSettings = PlanetSettings.copy(); g.BeltSettings = BeltSettings.copy(); g.SemiRandomizedGeneration = SemiRandomizedGeneration; g.WorldSize = WorldSize; g.FirstPlanetCenter = FirstPlanetCenter; g.UseVanillaPlanets = UseVanillaPlanets; g.PlanetsOnlyOnce = PlanetsOnlyOnce; g.MoonsOnlyOnce = MoonsOnlyOnce; return(g); }
public MyObjectBuilder_PluginSettings() { Enable = false; GeneratorSettings = new GeneratorSettings(); }