C# Class Dwarrowdelf.TerrainGen.TerrainHelpers

Exibir arquivo Open project: tomba/dwarrowdelf Class Usage Examples

Public Methods

Method Description
CreateBaseMinerals ( TerrainData terrain, Random random, double xk, double yk ) : void
CreateOreClusters ( TerrainData terrain, Random random ) : void
CreateOreVeins ( TerrainData terrain, Random random, double xk, double yk ) : void
CreateSoil ( TerrainData data, int soilLimit ) : void
CreateVegetation ( TerrainData terrain, Random random, int vegetationLimit ) : void

Private Methods

Method Description
CreateOre ( TerrainData terrain, IntVector3 p, MaterialID oreMaterialID ) : bool
CreateOreCluster ( TerrainData terrain, IntVector3 p, MaterialID oreMaterialID, int count ) : void
CreateOreCluster ( TerrainData terrain, Random random, IntVector3 p, MaterialID oreMaterialID ) : void
CreateOreSphere ( TerrainData terrain, Random random, IntVector3 center, int r, MaterialID oreMaterialID, double probIn, double probOut ) : void
GetRandomSubterraneanLocation ( TerrainData data, Random random ) : IntVector3

Method Details

CreateBaseMinerals() public static method

public static CreateBaseMinerals ( TerrainData terrain, Random random, double xk, double yk ) : void
terrain TerrainData
random System.Random
xk double
yk double
return void

CreateOreClusters() public static method

public static CreateOreClusters ( TerrainData terrain, Random random ) : void
terrain TerrainData
random System.Random
return void

CreateOreVeins() public static method

public static CreateOreVeins ( TerrainData terrain, Random random, double xk, double yk ) : void
terrain TerrainData
random System.Random
xk double
yk double
return void

CreateSoil() public static method

public static CreateSoil ( TerrainData data, int soilLimit ) : void
data TerrainData
soilLimit int
return void

CreateVegetation() public static method

public static CreateVegetation ( TerrainData terrain, Random random, int vegetationLimit ) : void
terrain TerrainData
random System.Random
vegetationLimit int
return void