Interface ITerrain
- Namespace
- Valheim.Testing
- Assembly
- Valheim.Testing.dll
A declared terrain input. Horizontal x/z and returned height y are in metres; it does not run Valheim's generator.
public interface ITerrain
Methods
GetBiome(float, float)
Returns the declared biome at horizontal x/z.
TerrainBiome GetBiome(float x, float z)
Parameters
xfloatzfloat
Returns
GetHeight(float, float)
Returns ground height y in metres at horizontal x/z.
float GetHeight(float x, float z)
Parameters
xfloatzfloat
Returns
- float
GetRiverWeight(float, float, out float, out float)
Returns the declared river weight and width; their interpretation belongs to the consuming mod.
void GetRiverWeight(float x, float z, out float weight, out float width)
Parameters
xfloatzfloatweightfloatwidthfloat