Table of Contents

Class SurfacePlan

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll

What a client surface check measures: loaded-ground heights at grid vertices and, optionally, a support point where a stationary player must stand grounded (on dry ground: a swimming player is not supported). Fixture preparation writes it; the ObserveCheck example's surface probe reads it. Expected values come from the fixture's declared inputs, never from the check.

public sealed class SurfacePlan
Inheritance
object
SurfacePlan

Properties

ExpectedFrom

public string ExpectedFrom { get; set; }

Property Value

string

Samples

public List<HeightExpectation> Samples { get; set; }

Property Value

List<HeightExpectation>

Support

Null when the fixture declares no dry support point: grounding is then not checked, and reports say so.

public HeightExpectation? Support { get; set; }

Property Value

HeightExpectation

Tolerance

public float Tolerance { get; set; }

Property Value

float

Methods

Read(string)

public static SurfacePlan Read(string path)

Parameters

path string

Returns

SurfacePlan

Validate()

public void Validate()

Write(string)

public void Write(string path)

Parameters

path string