DotNet.Ships.Record.ParsedSlot - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Ships / ParsedSlot
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/BuildSlot.cs:52
What a journal slot key says about the mount it names.
new ParsedSlot(
Kind,Size,Core?,Restriction?)
Which kind of mount the key names.
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.
CoreSlotType? = null
The core function a core key fills, such as MainEngines to thrusters.
SlotRestriction? = null
The restriction the key implies, such as Military01 to SlotRestriction.Military.
Core:
CoreSlotType?
The core function a core key fills, such as MainEngines to thrusters.
Kind:
SlotKind
Which kind of mount the key names.
Restriction:
SlotRestriction?
The restriction the key implies, such as Military01 to SlotRestriction.Military.
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.