Exemplo n.º 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);
        }
Exemplo n.º 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);
        }