Skip to content
EvilEngine.Mounts

ExternalSetting record struct

public readonly record struct ExternalSetting

What a pointer’s [externals] table says about one External: a path to find it at, or just on or off. It prints as its path, or true or false, as the pointer’s file writes it.

[externals]
cstrike = "/run/media/me/Games/Counter-Strike Source"
tf = false
"workshop/3657294321" = false
Assembly
EvilEngine.Mounts
Commit
4ff877b1

Members

ExternalSetting constructor

public ExternalSetting(string? Path, bool On)

Makes a setting from a path, or null for none, and whether it’s on.

Path property

public string? Path { get; init; }

The path the player gave, or null.

On property

public bool On { get; init; }

Whether the player wants it.

Enabled property

public static ExternalSetting Enabled { get; }

On, with no path: the host looks where the external’s hint says.

Disabled property

public static ExternalSetting Disabled { get; }

Off: the host doesn’t look for it, and it resolves Off from the Player.

At method

public static ExternalSetting At(string path)

On, at an absolute path, which the host checks holds what the external declares.