Table of Contents

Class ReplayTerrain

Namespace
Valheim.Testing
Assembly
Valheim.Testing.dll
public sealed class ReplayTerrain : ITerrain
Inheritance
object
ReplayTerrain
Implements

Constructors

ReplayTerrain(string, string, IEnumerable<TerrainSample>)

public ReplayTerrain(string provenance, string layer, IEnumerable<TerrainSample> samples)

Parameters

provenance string
layer string
samples IEnumerable<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

x float
z float

Returns

TerrainBiome

GetHeight(float, float)

Returns ground height y in metres at horizontal x/z.

public float GetHeight(float x, float z)

Parameters

x float
z float

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

x float
z float
weight float
width float