Table of Contents

Class TransformMatch

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

One-to-one matching of placed objects by prefab, position and rotation. Counts must agree and every expected object needs its own observed object: stacked identical prefabs cannot swap by sharing a horizontal position, and a duplicate cannot stand in for a missing object. Rotation compares the quaternion angle, so q and -q are the same.

public static class TransformMatch
Inheritance
object
TransformMatch

Methods

Match(IReadOnlyList<PlacedObject>, IReadOnlyList<PlacedObject>, double, double)

public static void Match(IReadOnlyList<PlacedObject> actual, IReadOnlyList<PlacedObject> expected, double positionTolerance, double angleToleranceDegrees)

Parameters

actual IReadOnlyList<PlacedObject>
expected IReadOnlyList<PlacedObject>
positionTolerance double
angleToleranceDegrees double