Skip to content

DotNet.Astronomy.Class.MassCode

github-actions[bot] edited this page Sep 20, 2026 · 11 revisions

EliteDangerousAlmanac / Astronomy / MassCode

Class: MassCode

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:18

The letter that states how large a boxel is, and the size class behind it.

Remarks

The lower-case letter after the number pair in a procedural name is the mass code. It is the d in Synuefe EN-H d11-96, and it states the edge of the boxel the system was generated in. An a boxel is ten light years on a side, and every letter after it doubles that, up to a whole sector at h.

The same figure is the size class the system address packs, counted from zero.

Fields

BaseBoxelLy

const BaseBoxelLy: int = 10

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:24

The edge of the smallest boxel, in light years.

Count

const Count: int = 8

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:21

The count of mass codes, and of size classes.

Methods

BoxelEdgeLy()

static BoxelEdgeLy(sizeClass): int

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:82

Reads the edge of a boxel of one size class, in light years.

Parameters

sizeClass

int

The size class, zero through seven.

Returns

int

The edge in light years, ten through 1280.

Exceptions

ArgumentOutOfRangeException

The size class is outside zero through seven.

FromSizeClass()

static FromSizeClass(sizeClass): char

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:72

Writes a size class as its mass-code letter.

Parameters

sizeClass

int

The size class, zero through seven.

Returns

char

The letter, a through h.

Exceptions

ArgumentOutOfRangeException

The size class is outside zero through seven.

ToSizeClass()

static ToSizeClass(code): int

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:32

Reads a mass-code letter as its size class.

Parameters

code

char

The letter, a through h, in either case.

Returns

int

The size class, zero through seven.

Exceptions

ArgumentOutOfRangeException

The letter is not one of a through h.

ToSizeClass()

static ToSizeClass(code): int

Defined in: dotnet/src/EliteDangerousAlmanac/Astronomy/MassCode.cs:54

Reads a one-letter mass code as its size class.

Parameters

code

string

The letter, a through h, in either case.

Returns

int

The size class, zero through seven.

Exceptions

ArgumentNullException

The code is absent.

ArgumentOutOfRangeException

The code is not one letter of a through h. A mass code is asked for rather than searched for, so an unusable one is loud.

.NET

Guides
Astronomy
Classes (16)
Records (29)
Enumerations (6)
Commodities
Classes (2)
Records (1)
Enumerations (1)
Equipment
Classes (8)
Records (19)
Enumerations (8)
GalaxyMap
Classes (1)
Records (1)
Localization
Classes (2)
Enumerations (1)
Materials
Classes (5)
Records (2)
Enumerations (4)
Ships
Classes (42)
Records (115)
Interfaces (1)
Enumerations (35)

Clone this wiki locally