DotNet.Ships.Class.ModuleLimits - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Ships / ModuleLimits

Class: ModuleLimits

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/ModuleLimits.cs:47

The per-ship module-count limits.

Remarks

The base allowances and the fitted increases reproduce EDSY's own model. See ATTRIBUTIONS.md for credit and licence terms.

Properties

ShipLimits

static ShipLimits: IReadOnlyDictionary<ModuleLimitGroup, int>

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/ModuleLimits.cs:60

The modules allowed in each per-ship limit family, before any fitted increase.

Remarks

Every figure is a whole-module count above zero. A fitted increase raises this base, so read Calculate for the effective allowance rather than adding grants by hand.

Methods

Calculate()

static Calculate(modules): IReadOnlyList<ModuleLimitUsage>

Defined in: dotnet/src/EliteDangerousAlmanac/Ships/ModuleLimits.cs:69

Resolves every per-ship allowance for one fitted module list.

Parameters

modules

IReadOnlyList<ModuleLimitEntry>

The fitted modules reduced to their limit facts. Every entry carrying a limit group consumes one place, and every increase raises the family it names.

Returns

IReadOnlyList<ModuleLimitUsage>

One usage record for every known family, in the order the base limits state them.

Exceptions

ArgumentNullException

modules is null.

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