# MountPlan record

> 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.

Namespace `EvilEngine.Mounts`, assembly `EvilEngine.Mounts`. Engine commit 4ff877b1.

```csharp
public sealed record MountPlan
```

What a game adapter's [Open](/docs/api/igameadapter#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.

## Members

### MountPlan (constructor)

```csharp
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)

```csharp
public CaseRule CaseRule { get; init; }
```

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

### Layers (property)

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

The mount's layers, as [LayerPlan](/docs/api/layerplan)s, 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)

```csharp
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)

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

The named pieces of the game a Plugin can require on its own, as [PartPlan](/docs/api/partplan)s, 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)

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

The files that fingerprint the build as a whole, read from the probe's [Tree](/docs/api/mountprobe#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)

```csharp
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)

```csharp
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)

```csharp
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.
