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

EliteDangerousAlmanac / Ships / ParsedSlot

Record: ParsedSlot

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/BuildSlot.cs:52

What a journal slot key says about the mount it names.

Constructors

new ParsedSlot()

new ParsedSlot(Kind, Size, Core?, Restriction?)

Parameters

Kind

SlotKind

Which kind of mount the key names.

Size

int?

The mount's class, or null when the key does not encode one and the mount has one to encode — Radar, Military01, Cargo01. The hull's layout carries the size instead.

null is not the only "no size here" answer. A mount whose fit rules are not size-based reads 0, and the cargo hatch reads 1. Test this for falsiness, or against the Kind you expect.

Core

CoreSlotType? = null

The core function a core key fills, such as MainEngines to thrusters.

Restriction

SlotRestriction? = null

The restriction the key implies, such as Military01 to SlotRestriction.Military.

Properties

Core

Core: CoreSlotType?

The core function a core key fills, such as MainEngines to thrusters.

Kind

Kind: SlotKind

Which kind of mount the key names.

Restriction

Restriction: SlotRestriction?

The restriction the key implies, such as Military01 to SlotRestriction.Military.

Size

Size: int?

The mount's class, or null when the key does not encode one and the mount has one to encode — Radar, Military01, Cargo01. The hull's layout carries the size instead.

null is not the only "no size here" answer. A mount whose fit rules are not size-based reads 0, and the cargo hatch reads 1. Test this for falsiness, or against the Kind you expect.

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