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

EliteDangerousAlmanac / Ships / ShieldGeneratorParams

Record: ShieldGeneratorParams

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Shields.cs:29

The shield generator constants a strength calculation needs, all post-engineering.

Remarks

Every curve value is optional, because a catalogue record is what a caller normally has. A generator missing any of the six cannot be placed on the curve at all and raises no shield.

A generator that carries all six is held to the curve's shape, which IMassCurve documents. Anything else is refused rather than answered with a plausible-looking number.

The optimal multiplier is what a Reinforced or Thermic recipe moves, and the optimal mass what Enhanced Low Power moves. A recipe names those two alone and the four endpoints follow them, so pass the whole moved curve rather than a moved optimum on stock endpoints.

Constructors

new ShieldGeneratorParams()

new ShieldGeneratorParams(MinMass?, OptMass?, MaxMass?, MinMultiplier?, OptMultiplier?, MaxMultiplier?)

Parameters

MinMass

double? = null

The hull mass at which the generator performs at its best, in tonnes.

OptMass

double? = null

The hull mass at which the generator performs to specification, in tonnes.

MaxMass

double? = null

The hull mass beyond which the generator raises no shield, in tonnes.

MinMultiplier

double? = null

The smallest strength multiplier, reached at the maximum mass.

OptMultiplier

double? = null

The strength multiplier at the optimal mass.

MaxMultiplier

double? = null

The largest strength multiplier, reached at the minimum mass.

Properties

MaxMass

MaxMass: double?

The hull mass beyond which the generator raises no shield, in tonnes.

MaxMultiplier

MaxMultiplier: double?

The largest strength multiplier, reached at the minimum mass.

MinMass

MinMass: double?

The hull mass at which the generator performs at its best, in tonnes.

MinMultiplier

MinMultiplier: double?

The smallest strength multiplier, reached at the maximum mass.

OptMass

OptMass: double?

The hull mass at which the generator performs to specification, in tonnes.

OptMultiplier

OptMultiplier: double?

The strength multiplier at the optimal mass.

Resistances

Resistances: DamageTypeValues

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Shields.cs:38

The generator's own resistances, each a fraction. A negative figure is a weakness.

Methods

FromStats()

static FromStats(stats): ShieldGeneratorParams

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/Shields.cs:44

Reads a generator's curve and resistances off a module's stats.

Parameters

stats

ModuleStats

The module's stats, post-engineering.

Returns

ShieldGeneratorParams

The generator constants the stats carry.

Exceptions

ArgumentNullException

stats is null.

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