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

EliteDangerousAlmanac / Ships / ShieldCapacitorInput

Record: ShieldCapacitorInput

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/ShieldCapacitor.cs:11

Everything a SYS-capacitor calculation needs about one raised shield.

Constructors

new ShieldCapacitorInput()

new ShieldCapacitorInput(Strength, Resistances, SystemsCapacity, SystemsRecharge)

Parameters

Strength

double

The shield's total strength, in megajoules.

Resistances

DamageTypeValues

The shield's own stacked resistances, pip-free, each a finite fraction.

SystemsCapacity

double

The SYS-capacitor capacity, in megajoules.

SystemsRecharge

double

The four-SYS-pip recharge rate, in megajoules per second.

Properties

Resistances

Resistances: DamageTypeValues

The shield's own stacked resistances, pip-free, each a finite fraction.

Strength

Strength: double

The shield's total strength, in megajoules.

SystemsCapacity

SystemsCapacity: double

The SYS-capacitor capacity, in megajoules.

SystemsRecharge

SystemsRecharge: double

The four-SYS-pip recharge rate, in megajoules per second.

Methods

For()

static For(shields, systemsCapacity, systemsRecharge): ShieldCapacitorInput

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/ShieldCapacitor.cs:23

The bare shield a build already holds, with the distributor's SYS figures.

Parameters

shields

ShieldMetrics

The pip-free shield metrics.

systemsCapacity

double

The SYS-capacitor capacity, in megajoules.

systemsRecharge

double

The four-SYS-pip recharge rate, in megajoules per second.

Returns

ShieldCapacitorInput

The input, so the two halves compose without a hand-written adapter.

Exceptions

ArgumentNullException

shields is null.

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