astro.Variable.CODEX_REGIONS - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

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

Variable: CODEX_REGIONS

const CODEX_REGIONS: readonly CodexRegion[]

Defined in: src/astro/codex-region.ts:129

All 42 galactic regions, ordered by id (index i holds region id i + 1).

Remarks

This loads only galactic-regions.jsonc (region metadata); the lookup cell grid lives in a separate module, so importing this never bundles it.

Example

import { CODEX_REGIONS } from '@elite-dangerous-almanac/core/astro/codex-region';

CODEX_REGIONS.length; // -> 42
CODEX_REGIONS[0]?.name; // -> 'Galactic Centre'
⚠️ **GitHub.com Fallback** ⚠️