Class TerrainWorld
A WorldGenerator over the toolkit's composable terrain (ITerrain).
public class TerrainWorld : WorldGenerator
- Inheritance
-
objectWorldGeneratorTerrainWorld
Constructors
TerrainWorld(ITerrain)
public TerrainWorld(ITerrain terrain)
Parameters
terrainITerrain
Properties
Terrain
public ITerrain Terrain { get; }
Property Value
Methods
GetBiome(float, float, float, bool)
The biome at a point, with the game's signature and defaults. A test world overrides it; the double passes the game's ocean parameters through and does not model them.
public override Heightmap.Biome GetBiome(float x, float z, float oceanLevel = 0.02, bool waterAlwaysOcean = false)
Parameters
xfloatzfloatoceanLevelfloatwaterAlwaysOceanbool
Returns
- Heightmap.Biome
GetHeight(float, float)
public override float GetHeight(float x, float z)
Parameters
xfloatzfloat
Returns
- float
GetRiverWeight(float, float, out float, out float)
public override void GetRiverWeight(float x, float z, out float weight, out float width)
Parameters
xfloatzfloatweightfloatwidthfloat