DotNet.Equipment.Class.SuitCatalogue - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Equipment / SuitCatalogue

Class: SuitCatalogue

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitCatalogue.cs:21

The personal-suit catalogue and the lookups that search it.

Remarks

A suit is stored once per family, with the stats a grade leaves alone on the family record and the rest under Suit.Grades. The Flight Suit is in the catalogue like any other, and carries the one grade it has.

The catalogue loads from its shared data file on first use. Every record is immutable, so one caller cannot change another caller's answers.

Properties

All

static All: IReadOnlyList<Suit>

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitCatalogue.cs:34

Every personal suit, including the Flight Suit no upgrade reaches.

Methods

FindByFamily()

static FindByFamily(family): Suit?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitCatalogue.cs:40

Finds a suit by its grade-independent family.

Parameters

family

string?

The family, such as utilitysuit.

Returns

Suit?

The suit, or null for a family no suit carries.

Remarks

Case and surrounding whitespace are ignored. An absent family is a miss.

FindByName()

static FindByName(name): Suit?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitCatalogue.cs:47

Finds a suit by its display name.

Parameters

name

string?

The display name, such as Maverick Suit.

Returns

Suit?

The suit, or null for a name no suit carries.

Remarks

Case and surrounding whitespace are ignored. An absent name is a miss.

FindBySymbol()

static FindBySymbol(symbol): SuitIdentity?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitCatalogue.cs:57

Resolves the grade-specific item symbol a journal suit event reports.

Parameters

symbol

string?

The item symbol, such as utilitysuit_class3.

Returns

SuitIdentity?

The suit and the grade the symbol names, or null for a symbol no suit carries.

Remarks

Case and surrounding whitespace are ignored. An absent symbol is a miss.

Grade()

static Grade(suit, grade): SuitGrade?

Defined in: dotnet/src/EliteDangerousAlmanac/Equipment/SuitCatalogue.cs:66

Reads one suit's stats at one grade.

Parameters

suit

Suit

The suit.

grade

int

The grade, from one through five.

Returns

SuitGrade?

The grade record, or null where the suit has no such grade.

Exceptions

ArgumentNullException

The suit is absent.

ArgumentOutOfRangeException

The grade is not one through five.

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