Пример #1
0
        public static GenLayer Magnify(int seed, GenLayer layer, int times)
        {
            GenLayer genlayer = layer;

            for (int i = 0; i < times; ++i)
            {
                genlayer = new GenLayerZoom(seed + 1, genlayer);
            }

            return(genlayer);
        }
Пример #2
0
        public static GenLayer InitAllLayer(int seed)
        {
            GenLayer addIsland0 = new GenLayerIsland(seed, null);
            GenLayer zoomed0    = new GenLayerZoom(seed, addIsland0);

            GenLayer biomesAdded = new GenLayerBiome(seed, zoomed0);
            GenLayer addIsland1  = new GenLayerAddIsland(2, biomesAdded);
            GenLayer zoomed1     = new GenLayerZoom(seed, addIsland1);
            GenLayer addIsland2  = new GenLayerAddIsland(50, zoomed1);

            // GenLayer zoomed2 = new GenLayerZoom(seed, zoomed0);
            GenLayer zoomed2 = GenLayerZoom.Magnify(seed, addIsland2, 4);

            GenLayer addBeach = new GenLayerAddBeach(50, zoomed2);
            GenLayer zoomed3  = new GenLayerZoom(seed, addBeach);
            GenLayer addRiver = new GenLayerAddRiver(1000, zoomed3);

            GenLayer result = GenLayerZoom.Magnify(seed, addRiver, 2);

            // GenLayer biomesAdded = new GenLayerBiome(seed, zoomed0);
            // GenLayer zoomed2 = new GenLayerZoom(seed, zoomed1);
            return(result);
        }
Пример #3
0
 public GenLayer(int seed, GenLayer parent)
 {
     _baseSeed = seed;
     _parent   = parent;
 }
Пример #4
0
 public GenLayerBiome(int seed, GenLayer parent)
     : base(seed, parent)
 {
 }
Пример #5
0
 public GenLayerAddIsland(int seed, GenLayer parent)
     : base(seed, parent)
 {
 }
Пример #6
0
 public GenLayerAddBeach(int seed, GenLayer parent)
     : base(seed, parent)
 {
 }
Пример #7
0
 public GenLayerZoom(int seed, GenLayer parent)
     : base(seed, parent)
 {
 }
Пример #8
0
 public GenLayerAddRiver(int seed, GenLayer parent)
     : base(seed, parent)
 {
 }