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

EliteDangerousAlmanac / Ships / LoadoutCalculations

Class: LoadoutCalculations

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:180

The four aggregate sums a build reports.

Remarks

These read already-resolved module contributions, so they load no catalogue. Every contribution is a known number, because a record missing one is refused long before it reaches a build, which is why each of these answers its figure outright.

Methods

CargoCapacity()

static CargoCapacity(modules): double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:200

Adds up the fitted cargo racks.

Parameters

modules

IReadOnlyList<LoadoutCalculationModule>

The resolved fitted-module contributions.

Returns

double

The cargo capacity in tonnes. A build with no rack carries none.

Exceptions

ArgumentNullException

modules is null.

FuelCapacity()

static FuelCapacity(reserveFuelCapacity, modules): LoadoutFuelCapacity

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:227

Adds the fitted fuel tanks to the hull's reserve.

Parameters

reserveFuelCapacity

double

The hull's reserve, in tonnes.

modules

IReadOnlyList<LoadoutCalculationModule>

The resolved fitted-module contributions.

Returns

LoadoutFuelCapacity

The main and the reserve capacity, in tonnes. No fitted tank is a main of nothing.

Exceptions

ArgumentNullException

modules is null.

PassengerCapacity()

static PassengerCapacity(modules): double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:213

Adds up the fitted passenger cabins.

Parameters

modules

IReadOnlyList<LoadoutCalculationModule>

The resolved fitted-module contributions.

Returns

double

The passenger capacity, in berths. A build with no cabin carries none.

Exceptions

ArgumentNullException

modules is null.

UnladenMass()

static UnladenMass(hullMass, modules): double

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/LoadoutCalculations.cs:187

Adds the hull and the fitted modules together.

Parameters

hullMass

double

The empty hull's mass, in tonnes.

modules

IReadOnlyList<LoadoutCalculationModule>

The resolved fitted-module contributions.

Returns

double

The unladen mass, in tonnes.

Exceptions

ArgumentNullException

modules is null.

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