Exemplo n.º 1
0
        public static GenLayer[] Func_48425_a(long par0, WorldType par2WorldType)
        {
            GenLayer obj = new GenLayerIsland(1L);

            obj = new GenLayerFuzzyZoom(2000L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(1L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2001L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(2L, ((GenLayer)(obj)));
            obj = new GenLayerAddSnow(2L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2002L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(3L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2003L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(4L, ((GenLayer)(obj)));
            obj = new GenLayerAddMushroomIsland(5L, ((GenLayer)(obj)));
            sbyte    byte0 = 4;
            GenLayer obj1  = obj;

            obj1 = GenLayerZoom.Func_35515_a(1000L, ((GenLayer)(obj1)), 0);
            obj1 = new GenLayerRiverInit(100L, ((GenLayer)(obj1)));
            obj1 = GenLayerZoom.Func_35515_a(1000L, ((GenLayer)(obj1)), byte0 + 2);
            obj1 = new GenLayerRiver(1L, ((GenLayer)(obj1)));
            obj1 = new GenLayerSmooth(1000L, ((GenLayer)(obj1)));
            GenLayer obj2 = obj;

            obj2 = GenLayerZoom.Func_35515_a(1000L, ((GenLayer)(obj2)), 0);
            obj2 = new GenLayerBiome(200L, ((GenLayer)(obj2)), par2WorldType);
            obj2 = GenLayerZoom.Func_35515_a(1000L, ((GenLayer)(obj2)), 2);
            obj2 = new GenLayerHills(1000L, ((GenLayer)(obj2)));

            for (int i = 0; i < byte0; i++)
            {
                obj2 = new GenLayerZoom(1000 + i, ((GenLayer)(obj2)));

                if (i == 0)
                {
                    obj2 = new GenLayerAddIsland(3L, ((GenLayer)(obj2)));
                }

                if (i == 1)
                {
                    obj2 = new GenLayerShore(1000L, ((GenLayer)(obj2)));
                }

                if (i == 1)
                {
                    obj2 = new GenLayerSwampRivers(1000L, ((GenLayer)(obj2)));
                }
            }

            obj2 = new GenLayerSmooth(1000L, ((GenLayer)(obj2)));
            obj2 = new GenLayerRiverMix(100L, ((GenLayer)(obj2)), ((GenLayer)(obj1)));
            GenLayerRiverMix    genlayerrivermix    = ((GenLayerRiverMix)(obj2));
            GenLayerVoronoiZoom genlayervoronoizoom = new GenLayerVoronoiZoom(10L, ((GenLayer)(obj2)));

            ((GenLayer)(obj2)).InitWorldGenSeed(par0);
            genlayervoronoizoom.InitWorldGenSeed(par0);
            return(new GenLayer[] { obj2, genlayervoronoizoom, genlayerrivermix });
        }
Exemplo n.º 2
0
        public static GenLayer[] func_35497_a(long l)
        {
            GenLayer obj = new LayerIsland(1L);
            obj = new GenLayerZoomFuzzy(2000L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(1L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2001L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(2L, ((GenLayer)(obj)));
            obj = new GenLayerSnow(2L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2002L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(3L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2003L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(4L, ((GenLayer)(obj)));
            obj = new GenLayerMushroomIsland(5L, ((GenLayer)(obj)));
            byte byte0 = 4;
            GenLayer obj1 = obj;
            obj1 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj1)), 0);
            obj1 = new GenLayerRiverInit(100L, ((GenLayer)(obj1)));
            obj1 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj1)), byte0 + 2);
            obj1 = new GenLayerRiver(1L, ((GenLayer)(obj1)));
            obj1 = new GenLayerSmooth(1000L, ((GenLayer)(obj1)));
            GenLayer obj2 = obj;
            obj2 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj2)), 0);
            obj2 = new GenLayerVillageLandscape(200L, ((GenLayer)(obj2)));
            obj2 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj2)), 2);
            GenLayer obj3 = new GenLayerTemperature(((GenLayer)(obj2)));
            GenLayer obj4 = new GenLayerDownfall(((GenLayer)(obj2)));
            for (int i = 0; i < byte0; i++)
            {
                obj2 = new GenLayerZoom(1000 + i, ((GenLayer)(obj2)));
                if (i == 0)
                {
                    obj2 = new GenLayerIsland(3L, ((GenLayer)(obj2)));
                }
                if (i == 0)
                {
                    obj2 = new GenLayerShore(1000L, ((GenLayer)(obj2)));
                }
                obj3 = new GenLayerSmoothZoom(1000 + i, ((GenLayer)(obj3)));
                obj3 = new GenLayerTemperatureMix(((GenLayer)(obj3)), ((GenLayer)(obj2)), i);
                obj4 = new GenLayerSmoothZoom(1000 + i, ((GenLayer)(obj4)));
                obj4 = new GenLayerDownfallMix(((GenLayer)(obj4)), ((GenLayer)(obj2)), i);
            }

            obj2 = new GenLayerSmooth(1000L, ((GenLayer)(obj2)));
            obj2 = new GenLayerRiverMix(100L, ((GenLayer)(obj2)), ((GenLayer)(obj1)));
            GenLayerRiverMix genlayerrivermix = ((GenLayerRiverMix)(obj2));
            obj3 = GenLayerSmoothZoom.func_35517_a(1000L, ((GenLayer)(obj3)), 2);
            obj4 = GenLayerSmoothZoom.func_35517_a(1000L, ((GenLayer)(obj4)), 2);
            GenLayerZoomVoronoi genlayerzoomvoronoi = new GenLayerZoomVoronoi(10L, ((GenLayer)(obj2)));
            ((GenLayer)(obj2)).initWorldGenSeed(l);
            ((GenLayer)(obj3)).initWorldGenSeed(l);
            ((GenLayer)(obj4)).initWorldGenSeed(l);
            genlayerzoomvoronoi.initWorldGenSeed(l);
            return (new GenLayer[] {
            obj2, genlayerzoomvoronoi, obj3, obj4, genlayerrivermix
            });
        }
Exemplo n.º 3
0
        public static GenLayer[] func_48425_a(long par0/*, WorldType par2WorldType*/)
        {
            GenLayer obj = new GenLayerIsland(1L);
            obj = new GenLayerFuzzyZoom(2000L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(1L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2001L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(2L, ((GenLayer)(obj)));
            obj = new GenLayerAddSnow(2L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2002L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(3L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2003L, ((GenLayer)(obj)));
            obj = new GenLayerAddIsland(4L, ((GenLayer)(obj)));
            obj = new GenLayerAddMushroomIsland(5L, ((GenLayer)(obj)));
            byte byte0 = 4;
            GenLayer obj1 = obj;
            obj1 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj1)), 0);
            obj1 = new GenLayerRiverInit(100L, ((GenLayer)(obj1)));
            obj1 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj1)), byte0 + 2);
            obj1 = new GenLayerRiver(1L, ((GenLayer)(obj1)));
            obj1 = new GenLayerSmooth(1000L, ((GenLayer)(obj1)));
            GenLayer obj2 = obj;
            obj2 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj2)), 0);
            obj2 = new GenLayerBiome(200L, ((GenLayer)(obj2))/*, par2WorldType*/);
            obj2 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj2)), 2);
            obj2 = new GenLayerHills(1000L, ((GenLayer)(obj2)));

            for (int i = 0; i < byte0; i++)
            {
                obj2 = new GenLayerZoom(1000 + i, ((GenLayer)(obj2)));

                if (i == 0)
                {
                    obj2 = new GenLayerAddIsland(3L, ((GenLayer)(obj2)));
                }

                if (i == 1)
                {
                    obj2 = new GenLayerShore(1000L, ((GenLayer)(obj2)));
                }

                if (i == 1)
                {
                    obj2 = new GenLayerSwampRivers(1000L, ((GenLayer)(obj2)));
                }
            }

            obj2 = new GenLayerSmooth(1000L, ((GenLayer)(obj2)));
            obj2 = new GenLayerRiverMix(100L, ((GenLayer)(obj2)), ((GenLayer)(obj1)));
            GenLayerRiverMix genlayerrivermix = ((GenLayerRiverMix)(obj2));
            GenLayerVoronoiZoom genlayervoronoizoom = new GenLayerVoronoiZoom(10L, ((GenLayer)(obj2)));
            ((GenLayer)(obj2)).initWorldGenSeed(par0);
            genlayervoronoizoom.initWorldGenSeed(par0);
            return (new GenLayer[]
                {
                    obj2, genlayervoronoizoom, genlayerrivermix
                });
        }
Exemplo n.º 4
0
        public static GenLayer[] func_35497_a(long l)
        {
            GenLayer obj = new LayerIsland(1L);

            obj = new GenLayerZoomFuzzy(2000L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(1L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2001L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(2L, ((GenLayer)(obj)));
            obj = new GenLayerSnow(2L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2002L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(3L, ((GenLayer)(obj)));
            obj = new GenLayerZoom(2003L, ((GenLayer)(obj)));
            obj = new GenLayerIsland(4L, ((GenLayer)(obj)));
            obj = new GenLayerMushroomIsland(5L, ((GenLayer)(obj)));
            byte     byte0 = 4;
            GenLayer obj1  = obj;

            obj1 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj1)), 0);
            obj1 = new GenLayerRiverInit(100L, ((GenLayer)(obj1)));
            obj1 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj1)), byte0 + 2);
            obj1 = new GenLayerRiver(1L, ((GenLayer)(obj1)));
            obj1 = new GenLayerSmooth(1000L, ((GenLayer)(obj1)));
            GenLayer obj2 = obj;

            obj2 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj2)), 0);
            obj2 = new GenLayerVillageLandscape(200L, ((GenLayer)(obj2)));
            obj2 = GenLayerZoom.func_35515_a(1000L, ((GenLayer)(obj2)), 2);
            obj2 = new GenLayerHills(1000L, ((GenLayer)(obj2)));
            GenLayer obj3 = new GenLayerTemperature(((GenLayer)(obj2)));
            GenLayer obj4 = new GenLayerDownfall(((GenLayer)(obj2)));

            for (int i = 0; i < byte0; i++)
            {
                obj2 = new GenLayerZoom(1000 + i, ((GenLayer)(obj2)));
                if (i == 0)
                {
                    obj2 = new GenLayerIsland(3L, ((GenLayer)(obj2)));
                }
                if (i == 1)
                {
                    obj2 = new GenLayerShore(1000L, ((GenLayer)(obj2)));
                }
                if (i == 1)
                {
                    obj2 = new GenLayerSwampRivers(1000L, ((GenLayer)(obj2)));
                }
                obj3 = new GenLayerSmoothZoom(1000 + i, ((GenLayer)(obj3)));
                obj3 = new GenLayerTemperatureMix(((GenLayer)(obj3)), ((GenLayer)(obj2)), i);
                obj4 = new GenLayerSmoothZoom(1000 + i, ((GenLayer)(obj4)));
                obj4 = new GenLayerDownfallMix(((GenLayer)(obj4)), ((GenLayer)(obj2)), i);
            }

            obj2 = new GenLayerSmooth(1000L, ((GenLayer)(obj2)));
            obj2 = new GenLayerRiverMix(100L, ((GenLayer)(obj2)), ((GenLayer)(obj1)));
            GenLayerRiverMix genlayerrivermix = ((GenLayerRiverMix)(obj2));

            obj3 = GenLayerSmoothZoom.func_35517_a(1000L, ((GenLayer)(obj3)), 2);
            obj4 = GenLayerSmoothZoom.func_35517_a(1000L, ((GenLayer)(obj4)), 2);
            GenLayerZoomVoronoi genlayerzoomvoronoi = new GenLayerZoomVoronoi(10L, ((GenLayer)(obj2)));

            ((GenLayer)(obj2)).initWorldGenSeed(l);
            ((GenLayer)(obj3)).initWorldGenSeed(l);
            ((GenLayer)(obj4)).initWorldGenSeed(l);
            genlayerzoomvoronoi.initWorldGenSeed(l);
            return(new GenLayer[]
            {
                obj2, genlayerzoomvoronoi, obj3, obj4, genlayerrivermix
            });
        }
Exemplo n.º 5
0
    public static GenLayer[] initializeAllBiomeGenerators(long baseSeed, WorldType worldType, string worldGeneratorOptions)
    {
        GenLayer genLayer = new GenLayerIsLand(1L);

        genLayer = new GenLayerFuzzyZoom(2000L, genLayer);
        GenLayerAddIsLand genLayerAddIsLand  = new GenLayerAddIsLand(2001L, genLayer);
        GenLayerZoom      genLayerZoom       = new GenLayerZoom(2001L, genLayerAddIsLand);
        GenLayerAddIsLand genLayerAddIsLand1 = new GenLayerAddIsLand(2L, genLayerZoom);

        genLayerAddIsLand1 = new GenLayerAddIsLand(50L, genLayerAddIsLand1);
        genLayerAddIsLand1 = new GenLayerAddIsLand(50L, genLayerAddIsLand1);
        GenLayerRemoveTooMuchOcean genLayerRoomTooMuchOcean = new GenLayerRemoveTooMuchOcean(2L, genLayerAddIsLand1);
        GenLayerAddSnow            genLayerAddSnow          = new GenLayerAddSnow(2L, genLayerRoomTooMuchOcean);
        GenLayerAddIsLand          genlayerAddIsLand2       = new GenLayerAddIsLand(3L, genLayerAddSnow);
        GenLayerEdge genLayerEdge = new GenLayerEdge(2L, genlayerAddIsLand2, GenLayerEdge.Mode.COOL_WARM);

        genLayerEdge = new GenLayerEdge(2L, genLayerEdge, GenLayerEdge.Mode.HEAT_ICE);
        genLayerEdge = new GenLayerEdge(3L, genLayerEdge, GenLayerEdge.Mode.SPECIAL);
        GenLayerZoom genLayerZoom1 = new GenLayerZoom(2002L, genLayerEdge);

        genLayerZoom1 = new GenLayerZoom(2003L, genLayerEdge);
        GenLayerAddIsLand         genLayerAddIsLand3         = new GenLayerAddIsLand(4L, genLayerZoom1);
        GenLayerAddMushroomIsLand genLayerAdddMushroomIsLand = new GenLayerAddMushroomIsLand(5L, genLayerAddIsLand3);
        GenLayerDeepOcean         genLayerDeepOcean          = new GenLayerDeepOcean(4L, genLayerAdddMushroomIsLand);
        GenLayer genLayer4 = GenLayerZoom.magnify(1000L, genLayerDeepOcean, 0);
        ChunkProviderSettings chunkprovidersettings = null;
        int i = 4;
        int j = i;

        GenLayer          genLayer5         = GenLayerZoom.magnify(1000L, genLayer4, 0);
        GenLayerRiverInit genLayerRiverInit = new GenLayerRiverInit(100L, genLayer5);
        GenLayerBiome     genLayerBiome     = new GenLayerBiome(200L, genLayer4, worldType, worldGeneratorOptions);
        GenLayer          genLayer6         = GenLayerZoom.magnify(1000L, genLayerBiome, 2);
        GenLayerBiomeEdge genLayerBiomeEdge = new GenLayerBiomeEdge(1000L, genLayer6);
        GenLayer          genLayer7         = GenLayerZoom.magnify(1000L, genLayerRiverInit, 2);
        GenLayer          genLayerHills     = new GenLayerHills(1000L, genLayerBiomeEdge, genLayer7);
        GenLayer          genLayer8         = GenLayerZoom.magnify(1000L, genLayerRiverInit, 2);

        genLayer8 = GenLayerZoom.magnify(1000L, genLayer8, j);
        GenLayerRiver  genLayerRiver  = new GenLayerRiver(1L, genLayer8);
        GenLayerSmooth genlayerSmooth = new GenLayerSmooth(1000L, genLayerRiver);

        genLayerHills = new GenLayerRareBiome(1001L, genLayerHills);

        for (int k = 0; k < i; ++k)
        {
            genLayerHills = new GenLayerZoom((long)(1000 + k), genLayerHills);

            if (k == 0)
            {
                genLayerHills = new GenLayerAddIsLand(3L, genLayerHills);
            }

            if (k == 1 || i == 1)
            {
                genLayerHills = new GenLayerShore(1000L, genLayerHills);
            }
        }

        GenLayerSmooth   genLayerSmooth1  = new GenLayerSmooth(1000L, genLayerHills);
        GenLayerRiverMix genLayerRiverMix = new GenLayerRiverMix(100L, genLayerSmooth1, genlayerSmooth);
        GenLayer         genLayer3        = new GenLayerVoronoZoom(10L, genLayerRiverMix);

        genLayerRiverMix.initWorldGenSeed(baseSeed);
        genLayer3.initWorldGenSeed(baseSeed);
        return(new GenLayer[] { genLayerRiverMix, genLayer3, genLayerRiverMix });
    }