DotNet.Ships.Record.LoadoutSlot - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / LoadoutSlot

Record: LoadoutSlot

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutSlot.cs:34

A point-in-time view of one hull mount.

Remarks

The view is detached from the build it came from, so read it again after an edit that changes the build. Every edit and every candidate query lives on the build itself and takes the mount's BuildSlot.Key, which is what keeps this value free of lifecycle rules.

Constructors

new LoadoutSlot()

new LoadoutSlot(Slot, Name, Module, Removable, ImmovableReason?)

Parameters

Slot

BuildSlot

The mount itself: its key, its kind and its size.

Name

string

The English label, such as Frame Shift Drive.

Module

FittedModule?

The fitted module, or null when the mount is empty.

Removable

bool

Whether an edit may empty this mount.

ImmovableReason

ImmovableReason? = null

Why the mount cannot be emptied, and null when Removable is set.

Properties

ImmovableReason

ImmovableReason: ImmovableReason?

Why the mount cannot be emptied, and null when Removable is set.

Key

Key: string

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutSlot.cs:42

The mount's stable journal key, which every edit takes.

Kind

Kind: SlotKind

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutSlot.cs:45

Which kind of mount this is.

Module

Module: FittedModule?

The fitted module, or null when the mount is empty.

Name

Name: string

The English label, such as Frame Shift Drive.

Removable

Removable: bool

Whether an edit may empty this mount.

Size

Size: int

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutSlot.cs:48

The mount's class.

Slot

Slot: BuildSlot

The mount itself: its key, its kind and its size.

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