Skip to content
EvilEngine.Mounts

MountPlan record

public sealed record MountPlan

What a game adapter’s Open returns: how the game’s files stack into one tree, and the pieces of it the engine reads or fingerprints. The mount core builds the mount from it, so a plan describes and reads as little as it can.

Assembly
EvilEngine.Mounts
Commit
4ff877b1

Members

MountPlan constructor

public MountPlan(CaseRule CaseRule)

Makes a plan with the case rule its paths follow and nothing else. Set the rest with an initialiser.

CaseRule property

public CaseRule CaseRule { get; init; }

Whether the mount’s paths are case-sensitive. Take your platform’s: pc is insensitive.

Layers property

public IReadOnlyList<LayerPlan> Layers { get; init; }

The mount’s layers, as LayerPlans, in search order. The first layer wins when two hold the same path, as a game’s own search order does, so a mod goes above the game it changes.

Requires property

public IReadOnlyList<MountRequirement> Requires { get; init; }

Other mounts this one needs open, each by game and optionally parts, platforms and builds. They open first, from whatever probes are on offer, so pointers can open in any order. A cycle, or a requirement nothing satisfies, fails the mount naming the whole chain.

Parts property

public IReadOnlyList<PartPlan> Parts { get; init; }

The named pieces of the game a Plugin can require on its own, as PartPlans, such as Quake’s episodes or a Garry’s Mod workshop item. Each is fingerprinted apart, so two players compare exactly the content a Plugin reads.

BuildFiles property

public IReadOnlyList<VirtualPath> BuildFiles { get; init; }

The files that fingerprint the build as a whole, read from the probe’s Tree. Pick the ones that change when the game is patched, its executable or its version file. When the fingerprint changes, the game’s row in Content Mounts says Changed until the player accepts the new build.

Records property

public IReadOnlyList<string> Records { get; init; }

The record sets the host reads at boot, by name in the game’s namespace, such as records/maps, which Singleplayer reads the game’s map list from. Bind a converter for each.

Text property

public IReadOnlyList<string> Text { get; init; }

The text tables the host reads for the game’s own strings, by name in the game’s namespace. Bind a converter for each.

Notes property

public IReadOnlyList<string> Notes { get; init; }

Lines shown on the game’s card in Content Mounts and by just mounts. Say there what was left out and why: a mod that only runs when asked for, a file the game no longer reads.