DotNet.Astronomy.Class.CodexRegions - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

EliteDangerousAlmanac / Astronomy / CodexRegions

Class: CodexRegions

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/CodexRegion.cs:65

The 42 codex regions the galaxy is divided into.

Remarks

Every system belongs to exactly one of them. This class reads what one region is, which costs the region facts alone. CodexRegionMap reads which region one place belongs to, which costs the grid the map is drawn on.

A region number of zero means outside the mapped grid, and no region carries it.

The numbers and the names come from the EliteDangerousRegionMap project. See ATTRIBUTIONS.md for credit and licence terms.

Properties

All

static All: IReadOnlyList<CodexRegion>

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/CodexRegion.cs:76

Every codex region, in the order of their numbers.

Methods

Find()

static Find(id): CodexRegion?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/CodexRegion.cs:84

Finds a region by its number.

Parameters

id

int

The region number, one through 42.

Returns

CodexRegion?

The region, or null for zero, which means outside the mapped grid, and for any other number no region carries.

FindByName()

static FindByName(name): CodexRegion?

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/CodexRegion.cs:90

Finds a region by its name.

Parameters

name

string?

The region name, in any casing, with any surrounding whitespace.

Returns

CodexRegion?

The region, or null for a name no region carries.

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