DotNet.Ships.Class.SlotRestrictions - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / SlotRestrictions

Class: SlotRestrictions

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SlotModel.cs:155

What each slot restriction accepts, as a phrase fit for an outfitting screen.

Remarks

This is the same wording a loadout uses when it refuses a module, so a label you show and the reason a caller reads cannot drift apart.

Methods

IsHardpointRestriction()

static IsHardpointRestriction(restriction): bool

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SlotModel.cs:180

Whether a restriction is one a weapon hardpoint can carry.

Parameters

restriction

this SlotRestriction

The restriction to classify.

Returns

bool

true for a hardpoint restriction.

IsOptionalRestriction()

static IsOptionalRestriction(restriction): bool

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SlotModel.cs:186

Whether a restriction is one an optional internal can carry.

Parameters

restriction

this SlotRestriction

The restriction to classify.

Returns

bool

true for an optional-internal restriction.

Label()

static Label(restriction): string

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SlotModel.cs:172

What a restricted mount accepts, as a short phrase.

Parameters

restriction

this SlotRestriction

The restriction to describe.

Returns

string

The phrase.

Exceptions

ArgumentOutOfRangeException

restriction is not a member.

SlotKey()

static SlotKey(core): string

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SlotModel.cs:193

The journal slot key a core mount has.

Parameters

core

this CoreSlotType

The core function.

Returns

string

The journal slot key, such as MainEngines for the thrusters.

Exceptions

ArgumentOutOfRangeException

core is not a member.

⚠️ **GitHub.com Fallback** ⚠️