Skip to content

astro.Interface.BodyParent

github-actions[bot] edited this page Aug 28, 2026 · 1 revision

@elite-dangerous-almanac/core / astro / BodyParent

Interface: BodyParent

Defined in: src/astro/body-scan.ts:34

One step up a body's parent chain, as one entry of BodyScanEvent.Parents.

Remarks

Exactly one key is present, and its value is that parent's BodyScanEvent.BodyID — so a moon orbiting a planet reads { Planet: 4 }. The four keys are the four kinds of thing a body can orbit; Null is a barycentre, which is a point rather than a body and has no scan of its own.

Example

import type { BodyParent } from '@elite-dangerous-almanac/core/astro';

// A moon of the second planet, which orbits the main star.
const parents: readonly BodyParent[] = [{ Planet: 4 }, { Star: 0 }];

Object.keys(parents[0] ?? {})[0]; // -> 'Planet'

Properties

Null?

readonly optional Null?: number

Defined in: src/astro/body-scan.ts:42

BodyID of the barycentre this body orbits. A point, not a scannable body.


Planet?

readonly optional Planet?: number

Defined in: src/astro/body-scan.ts:38

BodyID of the planet this body orbits — the body is a moon of it.


Ring?

readonly optional Ring?: number

Defined in: src/astro/body-scan.ts:40

BodyID of the ring this body sits in — written for a belt cluster.


Star?

readonly optional Star?: number

Defined in: src/astro/body-scan.ts:36

BodyID of the star this body orbits.

API

Guides
astro
Classes (1)
ProceduralSystem

Properties

Accessors

Methods

Interfaces (28)
Type Aliases (6)
Variables (22)
Functions (57)
Subpath modules (3)
commodities
Interfaces (1)
Type Aliases (1)
Variables (3)
Functions (3)
equipment
Interfaces (6)
Type Aliases (8)
Variables (3)
Functions (10)
Subpath modules (2)
i18n
Interfaces (1)
Type Aliases (1)
Functions (17)
materials
Enumerations (2)
Interfaces (2)
Type Aliases (2)
Variables (9)
Functions (9)
ships
Classes (3)
BuildMetrics

Methods

LoadoutEditError

Constructors

Properties

Methods

ShipLoadout

Accessors

Methods

Interfaces (125)
Type Aliases (44)
Variables (10)
Functions (85)
Subpath modules (8)

Clone this wiki locally