ships.TypeAlias.ShipGunsight - Elite-Dangerous-Almanac/Almanac-Core GitHub Wiki

@elite-dangerous-almanac/core / ships / ShipGunsight

Type Alias: ShipGunsight

ShipGunsight = readonly GunsightOffset[]

Defined in: src/ships/gunsights.ts:43

A hull's fixed-weapon offsets, in exactly the same order as Ship.hardpoints.

Remarks

The shared ordering avoids repeating slot names in this compact catalogue. Pair an offset with ship.hardpoints[index], or with the hardpoint entries from enumerateSlots(ship) in their returned order, when a renderer needs the mount's size or journal-compatible slot key. The number in a journal slot key is not the array index: some hulls skip or reorder those numbers, so resolve a journal key through enumerateSlots(ship) before using its index here.

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