Generator.Generate C# (CSharp) Method

Generate() protected method

protected Generate ( ) : void
return void
	protected virtual void Generate()
	{		
		GetData ();
		LoadTiles ();		
		UpdateNeighbors ();
		
		GenerateRivers ();
		BuildRiverGroups ();
		DigRiverGroups ();
		AdjustMoistureMap ();
		
		UpdateBitmasks ();
		FloodFill ();
		
		GenerateBiomeMap ();
		UpdateBiomeBitmask();
		
		HeightMapRenderer.materials [0].mainTexture = TextureGenerator.GetHeightMapTexture (Width, Height, Tiles);
		HeatMapRenderer.materials[0].mainTexture = TextureGenerator.GetHeatMapTexture (Width, Height, Tiles);
		MoistureMapRenderer.materials[0].mainTexture = TextureGenerator.GetMoistureMapTexture (Width, Height, Tiles);
		BiomeMapRenderer.materials[0].mainTexture = TextureGenerator.GetBiomeMapTexture (Width, Height, Tiles, ColdestValue, ColderValue, ColdValue);
	}

Usage Example

Ejemplo n.º 1
0
 public void TestGenerateLppl()
 {
     var options = new GeneratorOptions();
       var generator = new Generator(options);
       var generated = generator.Generate();
       Console.WriteLine(generated.ToListPlot());
 }
All Usage Examples Of Generator::Generate