Class ReplayTerrain
- Namespace
- Valheim.Testing
- Assembly
- Valheim.Testing.dll
public sealed class ReplayTerrain : ITerrain
- Inheritance
-
objectReplayTerrain
- Implements
Constructors
ReplayTerrain(string, string, IEnumerable<TerrainSample>)
public ReplayTerrain(string provenance, string layer, IEnumerable<TerrainSample> samples)
Parameters
provenancestringlayerstringsamplesIEnumerable<TerrainSample>
Properties
Layer
public string Layer { get; }
Property Value
- string
Provenance
public string Provenance { get; }
Property Value
- string
Methods
GetBiome(float, float)
Returns the declared biome at horizontal x/z.
public TerrainBiome GetBiome(float x, float z)
Parameters
xfloatzfloat
Returns
GetHeight(float, float)
Returns ground height y in metres at horizontal x/z.
public 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.
public void GetRiverWeight(float x, float z, out float weight, out float width)
Parameters
xfloatzfloatweightfloatwidthfloat