Table of Contents

Class TerrainSnapshot

Namespace
Valheim.Testing.Doubles
Assembly
Valheim.Testing.Doubles.dll

A copy of one zone compiler's per-vertex state: level and smooth deltas, the modified-height flags, the paint mask (RGBA) and the modified-paint flags. Compare it with the compiler after a write to see exactly which vertices the write touched, including a flag set without a value change.

public sealed class TerrainSnapshot
Inheritance
object
TerrainSnapshot

Methods

ChangesIn(TerrainComp)

Every vertex of now that differs from this snapshot, exactly (no tolerance).

public List<TerrainChange> ChangesIn(TerrainComp now)

Parameters

now TerrainComp

Returns

List<TerrainChange>

Of(TerrainComp)

public static TerrainSnapshot Of(TerrainComp compiler)

Parameters

compiler TerrainComp

Returns

TerrainSnapshot