Table of Contents

Class SurfaceProbe

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll
public static class SurfaceProbe
Inheritance
object
SurfaceProbe

Methods

Compare(GameActor, string, IReadOnlyList<HeightExpectation>, float)

public static IReadOnlyList<SurfaceMeasurement> Compare(GameActor actor, string expectedFrom, IReadOnlyList<HeightExpectation> samples, float tolerance)

Parameters

actor GameActor
expectedFrom string
samples IReadOnlyList<HeightExpectation>
tolerance float

Returns

IReadOnlyList<SurfaceMeasurement>

Read(Observation, HeightExpectation, float)

public static SurfaceMeasurement Read(Observation observation, HeightExpectation expected, float tolerance)

Parameters

observation Observation
expected HeightExpectation
tolerance float

Returns

SurfaceMeasurement

Supported(Observation, HeightExpectation, float, float, float)

Whether the player in a valheim.world/player-support observation stands settled at point. Parses it as Read(Observation, double) does, the one parser of that observation; a non-finite reading is not support.

public static bool Supported(Observation observation, HeightExpectation point, float horizontalTolerance = 2, float verticalTolerance = 0.3, float maximumSpeed = 0.15)

Parameters

observation Observation
point HeightExpectation
horizontalTolerance float
verticalTolerance float
maximumSpeed float

Returns

bool