# ExternalSetting record struct

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

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

```csharp
public readonly record struct ExternalSetting
```

What a pointer's `[externals]` table says about one [External](/docs/api/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.

```toml
[externals]
cstrike = "/run/media/me/Games/Counter-Strike Source"
tf = false
"workshop/3657294321" = false
```

## Members

### ExternalSetting (constructor)

```csharp
public ExternalSetting(string? Path, bool On)
```

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

### Path (property)

```csharp
public string? Path { get; init; }
```

The path the player gave, or `null`.

### On (property)

```csharp
public bool On { get; init; }
```

Whether the player wants it.

### Enabled (property)

```csharp
public static ExternalSetting Enabled { get; }
```

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

### Disabled (property)

```csharp
public static ExternalSetting Disabled { get; }
```

Off: the host doesn't look for it, and it resolves [Off](/docs/api/externalstate#off) from the [Player](/docs/api/externalfrom#player).

### At (method)

```csharp
public static ExternalSetting At(string path)
```

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