Skip to content

ships.Interface.SlefExportOptions

github-actions[bot] edited this page Aug 26, 2026 · 73 revisions

@elite-dangerous-almanac/core / ships / SlefExportOptions

Interface: SlefExportOptions

Defined in: src/ships/ship-loadout.ts:454

As LoadoutExportOptions, plus the SLEF envelope — see ShipLoadout.toSlef.

Extends

Properties

credits?

readonly optional credits?: "retail" | "source"

Defined in: src/ships/ship-loadout.ts:450

Which credits to quote. 'retail' — the default — prices the build from the catalogue: the bare hull's hullCost, every fitted module's list price, and a Rebuy of 5% of the two.

'source' quotes the source purchase record instead — HullValue, ModulesValue, Rebuy and the per-module Value figures exactly as the capture stated them, and nothing at all for a build that has no such record. Each figure stays pinned to what it was paid for, so a fit that stops matching the capture narrows the export rather than staling it: a swapped slot exports unpriced, and ModulesValue and Rebuy go once any priced module has been swapped or removed, or a core internal stocked at import. HullValue names no slot and always stands. The guide Working with SLEF covers the boundary cases, including the one narrowing this cannot detect — a module the capture listed but never priced.

Inherited from

LoadoutExportOptions.credits


explicitPower?

readonly optional explicitPower?: boolean

Defined in: src/ships/ship-loadout.ts:433

Write On: true / Priority: 0 on modules that carry neither — as a journal always does and a build assembled here never does. Off by default, following SLEF's "require what is necessary, do not force the rest".

Inherited from

LoadoutExportOptions.explicitPower


header

readonly header: SlefHeader

Defined in: src/ships/ship-loadout.ts:461

The envelope header identifying the exporting application.

SLEF attribution belongs to the application producing the export, not to this calculation library, so callers must provide it.


indent?

readonly optional indent?: number

Defined in: src/ships/ship-loadout.ts:463

Spaces per indent for ShipLoadout.toSlefString. 0 (the default) is compact.


moduleOrder?

readonly optional moduleOrder?: "fitted" | "slots"

Defined in: src/ships/ship-loadout.ts:427

Module order. 'fitted' — the default — keeps the order the build carries: an import's own Modules[] order, or the order modules were fitted. 'slots' re-orders into outfitting-panel order; a module in a slot the hull's layout does not describe keeps its relative position at the end rather than being dropped.

Inherited from

LoadoutExportOptions.moduleOrder

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (16)
Type Aliases (3)
Variables (11)
Functions (37)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally