DotNet.Equipment.Record.SuitLoadout - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Equipment / SuitLoadout

Record: SuitLoadout

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitLoadout.cs:128

A suit loadout read from a journal event.

Constructors

new SuitLoadout()

new SuitLoadout(Suit, Grade, Stats, Modifications, Modifiers, Weapons, ImportOutcomes, SuitId?, LoadoutId?, Name?)

Parameters

Suit

Suit

The suit the event names.

Grade

int

The grade the suit is owned at.

Stats

SuitGrade

The suit's stats at that grade.

Modifications

IReadOnlyList<FittedPersonalModification>

The modifications the suit carries.

Modifiers

IReadOnlyList<PersonalModifier>

The stat changes those modifications make.

Weapons

IReadOnlyList<FittedPersonalWeapon>

The weapons the loadout fits, in the event's own order.

ImportOutcomes

IReadOnlyList<SuitLoadoutImportOutcome>

Everything the read passed over, in the order it was met.

SuitId

long? = null

The game's own identifier for the owned suit.

LoadoutId

long? = null

The game's own identifier for the saved loadout.

Name

string? = null

The name the player gave the loadout.

Properties

Grade

Grade: int

The grade the suit is owned at.

ImportOutcomes

ImportOutcomes: IReadOnlyList<SuitLoadoutImportOutcome>

Everything the read passed over, in the order it was met.

LoadoutId

LoadoutId: long?

The game's own identifier for the saved loadout.

Modifications

Modifications: IReadOnlyList<FittedPersonalModification>

The modifications the suit carries.

Modifiers

Modifiers: IReadOnlyList<PersonalModifier>

The stat changes those modifications make.

Name

Name: string?

The name the player gave the loadout.

Stats

Stats: SuitGrade

The suit's stats at that grade.

Suit

Suit: Suit

The suit the event names.

SuitId

SuitId: long?

The game's own identifier for the owned suit.

Weapons

Weapons: IReadOnlyList<FittedPersonalWeapon>

The weapons the loadout fits, in the event's own order.

Methods

Parse()

static Parse(loadout): SuitLoadout

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitLoadout.cs:156

Reads a suit loadout event.

Parameters

loadout

SuitLoadoutEvent

The event, as the journal states it.

Returns

SuitLoadout

The loadout, with every weapon fitted and every stat change applied.

Remarks

A read never refuses an entry it can pass over: an unknown weapon, an unknown mount, a grade outside the ladder and an unknown modification are all reported in ImportOutcomes and the rest of the loadout is read. What it refuses is an event it cannot identify a suit from, and one that fits two weapons to one mount.

Exceptions

ArgumentNullException

The event, or a field it must carry, is absent.

FormatException

No catalogue carries the stated suit, or one mount is named twice.

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