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

EliteDangerousAlmanac / Ships / SourcePurchaseRecord

Record: SourcePurchaseRecord

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SourcePurchase.cs:45

The credit figures one captured loadout arrived with.

Remarks

Every top-level figure can be absent, and absence means the source stated no value rather than that the hull or the modules were free.

The record describes the capture and not the live fit, so it stays as it is when the build it came with is edited. It is kept apart from the catalogue list prices a live build is costed at, because a capture can combine station discounts, omit modules that were bought, and disagree with its own totals.

Constructors

new SourcePurchaseRecord()

new SourcePurchaseRecord(HullValue, ModulesValue, Rebuy, ModuleValues, ModuleCount)

Parameters

HullValue

double?

The hull cost in credits as the source stated it, or null when it stated none.

ModulesValue

double?

The fitted modules' cost in credits as the source stated it, or null when it stated none.

Rebuy

double?

The insurance rebuy in credits as the source stated it, or null when it stated none.

ModuleValues

IReadOnlyList<SourceModuleValue>

The individually priced mounts, in capture order. An unpriced mount is absent.

ModuleCount

int

Every module the capture listed, the ones it left unpriced included.

Properties

HullValue

HullValue: double?

The hull cost in credits as the source stated it, or null when it stated none.

ModuleCount

ModuleCount: int

Every module the capture listed, the ones it left unpriced included.

ModulesValue

ModulesValue: double?

The fitted modules' cost in credits as the source stated it, or null when it stated none.

ModuleValues

ModuleValues: IReadOnlyList<SourceModuleValue>

The individually priced mounts, in capture order. An unpriced mount is absent.

Rebuy

Rebuy: double?

The insurance rebuy in credits as the source stated it, or null when it stated none.

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