Table of Contents

Class WalkSample

Namespace
Valheim.Testing.Game
Assembly
Valheim.Testing.Game.dll
public sealed record WalkSample
Inheritance
object
WalkSample

Constructors

WalkSample(double, float, float, float, float, bool, bool, bool, bool, bool)

public WalkSample(double Seconds, float X, float Y, float Z, float Speed, bool Grounded, bool Flying, bool Attached, bool Dead, bool Teleporting)

Parameters

Seconds double
X float
Y float
Z float
Speed float
Grounded bool
Flying bool
Attached bool
Dead bool
Teleporting bool

Properties

Attached

public bool Attached { get; init; }

Property Value

bool

Dead

public bool Dead { get; init; }

Property Value

bool

Flying

public bool Flying { get; init; }

Property Value

bool

Grounded

public bool Grounded { get; init; }

Property Value

bool

Seconds

public double Seconds { get; init; }

Property Value

double

Speed

public float Speed { get; init; }

Property Value

float

Teleporting

public bool Teleporting { get; init; }

Property Value

bool

X

public float X { get; init; }

Property Value

float

Y

public float Y { get; init; }

Property Value

float

Z

public float Z { get; init; }

Property Value

float

Methods

SupportedAt(HeightExpectation, float, float, float)

Settled on the ground at point: within the horizontal and vertical tolerances, no faster than maximumSpeed, grounded, and not flying, attached, dead or teleporting.

public bool SupportedAt(HeightExpectation point, float horizontalTolerance = 2, float verticalTolerance = 0.3, float maximumSpeed = 0.15)

Parameters

point HeightExpectation
horizontalTolerance float
verticalTolerance float
maximumSpeed float

Returns

bool