Esempio n. 1
0
        public override Biome GetBiome(int x, int z)
        {
            HeightMap.HeightType heightType = HeightMap.GetHeightType(x, z);

            switch (heightType)
            {
            case HeightMap.HeightType.Lowest:
                return(BiomeReferences.Desert.Oasis);

            case HeightMap.HeightType.Lower:
            case HeightMap.HeightType.Low:
            case HeightMap.HeightType.High:
                return(BiomeReferences.Desert.FlatDesert);

            case HeightMap.HeightType.Higher:
            case HeightMap.HeightType.Highest:
                return(BiomeReferences.Desert.Dunes);

            default:
                return(BiomeReferences.Empty);
            }
        }
Esempio n. 2
0
        public override Biome GetBiome(int x, int z)
        {
            HeightMap.HeightType heightType = HeightMap.GetHeightType(x, z);

            switch (heightType)
            {
            case HeightMap.HeightType.Lowest:
            case HeightMap.HeightType.Lower:
                return(BiomeReferences.Grasslands.Plains);

            case HeightMap.HeightType.Low:
            case HeightMap.HeightType.High:
                return(BiomeReferences.Grasslands.Forest);

            case HeightMap.HeightType.Higher:
                return(BiomeReferences.Grasslands.Hills);

            case HeightMap.HeightType.Highest:
                return(BiomeReferences.Grasslands.Mountains);

            default:
                return(BiomeReferences.Empty);
            }
        }