DotNet.Ships.Class.LoadoutValidator - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / LoadoutValidator

Class: LoadoutValidator

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutValidation.cs:297

Structural validation for a fitted build.

Remarks

Every rule but one reads the structure alone, so this loads no catalogue. The exception is the thruster rating, which is read against the ship's stated mass.

Methods

Validate()

static Validate(input): LoadoutValidation

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutValidation.cs:316

Validates a resolved fitted build.

Parameters

input

LoadoutValidationInput

The hull layout, the resolved module classifications and the mass.

Returns

LoadoutValidation

Structural validity, operational completeness, and every finding.

Remarks

The thruster rating is weighed against each load the input can state, and the lightest load that is already too heavy is the one reported. The loads only grow, so reporting the heavier ones as well would say the same thing three times, each less true than the last.

Exceptions

ArgumentNullException

input is null.

ArgumentOutOfRangeException

A figure in the mass, or a module's thruster rating, is stated and is not a finite number of zero or more.

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