Class FixtureLayout
Finds the one world a hosted fixture root holds, and when the root has another shape says which one and what to point
at instead: the world folder itself, a worlds_local wrapper, several worlds or none. Every refusal prints the
expected tree and what the root holds. Preflight() then checks the UID.
public static class FixtureLayout
- Inheritance
-
objectFixtureLayout
Fields
ExpectedTree
The one-world tree a fixture root holds, as the error messages print it.
public const string ExpectedTree = "<fixture root>/\n <WorldName>/ one Valheim 1.0 chunked save, exactly as the game wrote it\n _main.<n>.fwl2\n _main.<n>.db2\n ... (its chunk files)\nor, from an older save, <WorldName>.fwl and <WorldName>.db directly in <fixture root>. Nothing else."
Field Value
- string
Methods
Discover(string, string)
The identity of the one world in root, refusing any other layout with the corrective action, the
expected tree and the tree found; then refuses a world whose own metadata holds another UID than worldUid.
public static WorldIdentity Discover(string root, string worldUid)
Parameters
rootstringworldUidstring