Class SurfaceProbe
public static class SurfaceProbe
- Inheritance
-
objectSurfaceProbe
Methods
Compare(GameActor, string, IReadOnlyList<HeightExpectation>, float)
public static IReadOnlyList<SurfaceMeasurement> Compare(GameActor actor, string expectedFrom, IReadOnlyList<HeightExpectation> samples, float tolerance)
Parameters
actorGameActorexpectedFromstringsamplesIReadOnlyList<HeightExpectation>tolerancefloat
Returns
- IReadOnlyList<SurfaceMeasurement>
Read(Observation, HeightExpectation, float)
public static SurfaceMeasurement Read(Observation observation, HeightExpectation expected, float tolerance)
Parameters
observationObservationexpectedHeightExpectationtolerancefloat
Returns
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
observationObservationpointHeightExpectationhorizontalTolerancefloatverticalTolerancefloatmaximumSpeedfloat
Returns
- bool