# LayerPlan record

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

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

```csharp
public sealed record LayerPlan
```

One layer of a [MountPlan](/docs/api/mountplan): its name, its role and where its files come from.

```csharp
new LayerPlan("id1/PAK1.PAK", "base", new LayerSource.Container(tree, "id1/PAK1.PAK") { At = "id1" })
```

## Members

### LayerPlan (constructor)

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

Makes a layer from its name, role and source.

### Name (property)

```csharp
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](/docs/api/conversioncontext#tryreadcopy). Make it unique in the plan.

### Role (property)

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

```csharp
public LayerSource Source { get; init; }
```

Where its files come from, a [LayerSource](/docs/api/layersource).
