예제 #1
0
 public MyObjectBuilder_PluginSettings()
 {
     Enable = false;
     if (MySettings.Static != null)
     {
         if (MySettings.Static.Settings != null)
         {
             GeneratorSettings = MySettings.Static.Settings.GeneratorSettings.copy();
         }
         else
         {
             GeneratorSettings = new GeneratorSettings();
         }
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 public MyObjectBuilder_PluginSettings()
 {
     Enable            = false;
     GeneratorSettings = new GeneratorSettings();
 }