Class WorldDumpManifest
- Namespace
- Valheim.Testing
- Assembly
- Valheim.Testing.dll
One pinned ValheimCLI world-dump CSV and the facts recorded when it was captured. WorldDump.CaptureAsync in
Valheim.Testing.Game writes it as JSON beside the CSV after checking the game's reply against the file; nobody needs
to write one by hand. The CSV holds no world identity, so WorldUid, Seed and
GameBuild come from the same pinned session, and Sha256 binds them to the exact file.
Command and Reply are kept as evidence of how the file was made; Verify()
does not interpret them, because their grammar belongs to ValheimCLI.
public sealed class WorldDumpManifest
- Inheritance
-
objectWorldDumpManifest
Fields
Header
The native header, exactly: a dump with another layout is not a pinned native dump.
public const string Header = "x,z,height,biome,river,river_width,base_height"
Field Value
- string
LatticeOrigin
ValheimCLI's dump lattice starts here on both axes, so every node is -10000 + i * step.
public const float LatticeOrigin = -10000
Field Value
- float
Properties
Command
The command that wrote the file, as sent (evidence only).
public string Command { get; set; }
Property Value
- string
GameBuild
public string GameBuild { get; set; }
Property Value
- string
MaxX
public float MaxX { get; set; }
Property Value
- float
MaxZ
public float MaxZ { get; set; }
Property Value
- float
MinX
public float MinX { get; set; }
Property Value
- float
MinZ
public float MinZ { get; set; }
Property Value
- float
Name
The layer's name; a layered reader selects the base-height layer by it and names it in errors.
public string Name { get; set; }
Property Value
- string
Path
The CSV file. The capture writes the file name only, relative to the manifest, and WorldDump.ReadManifest
resolves it; if you read the JSON yourself, combine it with the manifest's directory, or a relative path resolves
against the current directory.
public string Path { get; set; }
Property Value
- string
Reply
The game's complete reply to Command (evidence only).
public string Reply { get; set; }
Property Value
- string
Seed
public string Seed { get; set; }
Property Value
- string
Sha256
public string Sha256 { get; set; }
Property Value
- string
Step
public int Step { get; set; }
Property Value
- int
WorldUid
public string WorldUid { get; set; }
Property Value
- string
Methods
Verify()
Loads Path only when it is the exact file this manifest describes: its SHA-256, the native header, the biome, river and base-height layers, a complete grid (no missing, repeated or ragged node), the recorded spacing and bounds, and nodes on ValheimCLI's lattice. The grid's provenance is Name.
public GridDumpTerrain Verify()