Skip to content
EvilEngine.Mounts

MountRequirement record

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

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.

Assembly
EvilEngine.Mounts
Commit
4ff877b1

Members

MountRequirement constructor

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

public string Game { get; init; }

The game’s name, a game adapter’s Game. It matches exactly, case and all.

Parts property

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

The parts the mount has to hold, by name. Empty asks for none. 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 passes, whatever parts it holds.

Platforms property

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

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

Builds property

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

The builds the mount may be, matched exactly against its MountId’s build. Empty takes any.

Accepts method

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.