Skip to content
EvilEngine.Mounts

LayerPlan record

public sealed record LayerPlan

One layer of a MountPlan: its name, its role and where its files come from.

new LayerPlan("id1/PAK1.PAK", "base", new LayerSource.Container(tree, "id1/PAK1.PAK") { At = "id1" })
Assembly
EvilEngine.Mounts
Commit
4ff877b1

Members

LayerPlan constructor

public LayerPlan(string Name, string Role, LayerSource Source)

Makes a layer from its name, role and source.

Name property

public string Name { get; init; }

The layer’s name, shown by just mounts and on the game’s card. A converter reading one layer’s copy of a file names the layer by it, through TryReadCopy. Make it unique in the plan.

Role property

public string Role { get; init; }

What the layer is to its game, in a word. The adapters use base, core, platform, language, fallback, depot, gamemode, dlc, mod, addon, workshop and download. The engine reads only a few: a map from an addon, download, workshop or mod layer is tagged as from the community, one from dlc as an expansion, and any other as official.

Source property

public LayerSource Source { get; init; }

Where its files come from, a LayerSource.