DotNet.Ships.Record.SourcePurchaseRecord - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki
EliteDangerousAlmanac / Ships / SourcePurchaseRecord
Defined in: dotnet/src/EliteDangerousAlmanac/Ships/SourcePurchase.cs:45
The credit figures one captured loadout arrived with.
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.
new SourcePurchaseRecord(
HullValue,ModulesValue,Rebuy,ModuleValues,ModuleCount)
double?
The hull cost in credits as the source stated it, or null when it stated none.
double?
The fitted modules' cost in credits as the source stated it, or null when it stated none.
double?
The insurance rebuy in credits as the source stated it, or null when it stated none.
IReadOnlyList<SourceModuleValue>
The individually priced mounts, in capture order. An unpriced mount is absent.
int
Every module the capture listed, the ones it left unpriced included.
HullValue:
double?
The hull cost in credits as the source stated it, or null when it stated none.
ModuleCount:
int
Every module the capture listed, the ones it left unpriced included.
ModulesValue:
double?
The fitted modules' cost 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.
Rebuy:
double?
The insurance rebuy in credits as the source stated it, or null when it stated none.