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

EliteDangerousAlmanac / Ships / BuildSlot

Record: BuildSlot

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

One mount on a hull — its stable key, its kind and its size.

Remarks

Kind decides which of the two optional fields carries a value. A core mount names its Core function and carries no restriction; a hardpoint or an optional internal may carry a Restriction and never names a core function; a utility, armour or cargo-hatch mount carries neither.

Constructors

new BuildSlot()

new BuildSlot(Key, Kind, Size, Core?, Restriction?)

Parameters

Key

string

The stable, journal-compatible slot key, such as PowerPlant, HugeHardpoint1, Slot01_Size6 or Military01. Every slot-key argument takes this string, matched without regard to case and otherwise exactly. Enumerate the keys rather than typing them: the numbering looks regular and on some hulls is not.

Kind

SlotKind

Which kind of mount this is.

Size

int

The mount's class. Core, optional and hardpoint mounts are 1 to 8; a utility mount and the armour mount use 0, because their fit rules are not size-based; the cargo hatch uses 1.

Core

CoreSlotType? = null

The core function this mount accepts, on a core mount only.

Restriction

SlotRestriction? = null

The module family this mount requires, when it is restricted.

Properties

Core

Core: CoreSlotType?

The core function this mount accepts, on a core mount only.

Key

Key: string

The stable, journal-compatible slot key, such as PowerPlant, HugeHardpoint1, Slot01_Size6 or Military01. Every slot-key argument takes this string, matched without regard to case and otherwise exactly. Enumerate the keys rather than typing them: the numbering looks regular and on some hulls is not.

Kind

Kind: SlotKind

Which kind of mount this is.

Restriction

Restriction: SlotRestriction?

The module family this mount requires, when it is restricted.

Size

Size: int

The mount's class. Core, optional and hardpoint mounts are 1 to 8; a utility mount and the armour mount use 0, because their fit rules are not size-based; the cargo hatch uses 1.

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