# MountRequirement record

> Which mount something needs: a game, and optionally the parts it has to hold and the platforms and builds it may be. A MountPlan lists them for the mounts it needs open first, a LayerSource.OtherMount picks a mount with one, a game External is found by one, and a Plugin's [[mounts]] tables are read into them.

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

```csharp
public sealed record MountRequirement
```

Which mount something needs: a game, and optionally the parts it has to hold and the platforms and builds it may be. A [MountPlan](/docs/api/mountplan#requires) lists them for the mounts it needs open first, a [LayerSource.OtherMount](/docs/api/layersource-othermount) picks a mount with one, a game [External](/docs/api/external#requirement) is found by one, and a Plugin's `[[mounts]]` tables are read into them.

```csharp
new MountRequirement("gmod") { Platforms = ["pc"], Parts = ["workshop/123456789"] }
```

It prints as the game with its lists after it, as in `gmod [workshop/123456789] on pc build 2026.04.29`, which is how failures name it.

## Members

### MountRequirement (constructor)

```csharp
public MountRequirement(string Game)
```

Makes a requirement for any mount of `game`, on any platform at any build, with no parts asked for.

### Game (property)

```csharp
public string Game { get; init; }
```

The game's name, a game adapter's [Game](/docs/api/igameadapter#game). It matches exactly, case and all.

### Parts (property)

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

The [parts](/docs/api/partplan) the mount has to hold, by name. Empty asks for none. [Accepts](#accepts) doesn't look at them: a plan's `Requires` and a Plugin's `[[mounts]]` check them once a mount is found, and fail naming the parts it's missing. A game external and an `OtherMount` layer take the first open mount [Accepts](#accepts) passes, whatever parts it holds.

### Platforms (property)

```csharp
public IReadOnlyList<string> Platforms { get; init; }
```

The platform ids the mount may be on, such as `pc`. Empty takes any.

### Builds (property)

```csharp
public IReadOnlyList<string> Builds { get; init; }
```

The builds the mount may be, matched exactly against its [MountId](/docs/api/mountid#build)'s build. Empty takes any.

### Accepts (method)

```csharp
public bool Accepts(MountId id)
```

Returns whether a mount id fits: the same game, and a platform and build in the lists when they aren't empty. All of it compares ordinally. Parts aren't checked here, since an id doesn't hold them.
