Пример #1
0
            /// <summary>
            /// Renders Collection Modifiers
            /// </summary>
            protected override void RenderModifiers(Int32 id)
            {
                // Index
                index++;

                // Add Biomes
                Button(Localization.LOC_KITTOPIATECH_LANDCLASSWINDOW_ADD, () =>
                {
                    Object landClass_ = null;
                    if (Collection is IEnumerable <PQSMod_VertexPlanet.LandClass> )
                    {
                        landClass_ = new PQSMod_VertexPlanet.LandClass("LandClass", 0, 0, new Color(), new Color(), 0);
                        (landClass_ as PQSMod_VertexPlanet.LandClass).colorNoiseMap = new PQSMod_VertexPlanet.SimplexWrapper(0, 0, 0, 0);
                    }
                    if (Collection is IEnumerable <PQSMod_HeightColorMap.LandClass> )
                    {
                        landClass_ = new PQSMod_HeightColorMap.LandClass("LandClass", 0, 0, new Color(), new Color(), 0);
                    }
                    if (Collection is IEnumerable <PQSMod_HeightColorMap2.LandClass> )
                    {
                        landClass_ = new PQSMod_HeightColorMap2.LandClass("LandClass", 0, 0, new Color(), new Color(), 0);
                    }
                    if (Collection is IEnumerable <PQSMod_HeightColorMapNoise.LandClass> )
                    {
                        landClass_ = new PQSMod_HeightColorMapNoise.LandClass("LandClass", 0, 0, new Color(), new Color(), 0);
                    }
                    if (Collection is IEnumerable <PQSLandControl.LandClass> )
                    {
                        PQSLandControl.LandClass landClass = new PQSLandControl.LandClass();
                        PQSLandControl.LerpRange range;

                        // Initialize default parameters
                        landClass.altDelta            = 1;
                        landClass.color               = new Color(0, 0, 0, 0);
                        landClass.coverageFrequency   = 1;
                        landClass.coverageOctaves     = 1;
                        landClass.coveragePersistance = 1;
                        landClass.coverageSeed        = 1;
                        landClass.landClassName       = "Base";
                        landClass.latDelta            = 1;
                        landClass.lonDelta            = 1;
                        landClass.noiseColor          = new Color(0, 0, 0, 0);
                        landClass.noiseFrequency      = 1;
                        landClass.noiseOctaves        = 1;
                        landClass.noisePersistance    = 1;
                        landClass.noiseSeed           = 1;

                        range                   = new PQSLandControl.LerpRange();
                        range.endEnd            = 1;
                        range.endStart          = 1;
                        range.startEnd          = 0;
                        range.startStart        = 0;
                        landClass.altitudeRange = range;

                        range                   = new PQSLandControl.LerpRange();
                        range.endEnd            = 1;
                        range.endStart          = 1;
                        range.startEnd          = 0;
                        range.startStart        = 0;
                        landClass.latitudeRange = range;

                        range            = new PQSLandControl.LerpRange();
                        range.endEnd     = 1;
                        range.endStart   = 1;
                        range.startEnd   = 0;
                        range.startStart = 0;
                        landClass.latitudeDoubleRange = range;

                        range                    = new PQSLandControl.LerpRange();
                        range.endEnd             = 2;
                        range.endStart           = 2;
                        range.startEnd           = -1;
                        range.startStart         = -1;
                        landClass.longitudeRange = range;

                        landClass_ = landClass;
                    }
                    List <Object> collection = Collection.ToList();
                    collection.Add(landClass_);
                    Collection = collection;
                    Callback(Collection);
                });
            }
Пример #2
0
 public LandClassLoaderNoise()
 {
     // Initialize the land class
     landClassNoise = new PQSMod_HeightColorMapNoise.LandClass("class", 0.0, 0.0, Color.white, Color.white, 0.0);
 }
Пример #3
0
 public LandClassLoaderNoise(PQSMod_HeightColorMapNoise.LandClass c)
 {
     landClassNoise = c;
 }
Пример #4
0
 public LandClassLoaderNoise(PQSMod_HeightColorMapNoise.LandClass c)
 {
     this.landClassNoise = c;
 }
Пример #5
0
 public LandClassLoaderNoise()
 {
     // Initialize the land class
     landClassNoise = new PQSMod_HeightColorMapNoise.LandClass("class", 0.0, 0.0, Color.white, Color.white, 0.0);
 }