Ejemplo n.º 1
0
 public static void initBiomeTypes()
 {
     grasslands        = new BiomeData("grasslands");
     grasslands.plants = new List <string> {
         "pebble_tile", "tall_grass", "grass", "grass_tile", "flower",
         "flower_tile", "mushroom", "mushroom_tile"
     };
 }
Ejemplo n.º 2
0
        private string generateBiomeTypeName(Biome biome, BiomeData biomeData)
        {
            string[] names;
            if (biome.Size > 10000)
            {
                //Large biome
                names = biomeData.BigNames;
            }
            else if (biome.Size > 1000)
            {
                //Medium biome
                names = biomeData.MediumNames;
            }
            else
            {
                //Small biome
                names = biomeData.SmallNames;
            }

            int nameIndex = UnityEngine.Random.Range(0, names.Length);
            return names[nameIndex];
        }