Skip to content

API Reference

The API reference is organized by abstractions โ€” the things a modder needs to interact with when writing a mod.

When you have a question like:

  • โ€œHow do I change ownership of a ship?โ€ โ†’ look up Ship
  • โ€œHow do I list stations in a sector?โ€ โ†’ look up Sector
  • โ€œHow do I react when a station is destroyed?โ€ โ†’ look up Station (Events section)

Youโ€™ll find: description, properties, actions, libraries, events, examples, gotchas, related abstractions.

The spatial hierarchy where everything exists โ€” Universe โ†’ Cluster โ†’ Sector โ†’ Zone, plus Highway and Gate.

Things that exist in the world โ€” Station (and its 8 subtypes), Ship, Module, Resource region.

Who owns and controls things โ€” Faction (parent), Player, NPC factions, Crew.

Ware, Trade offer, Subscription, Inventory, Cargo.

What objects do โ€” Order, Mission, Conversation, Boarding operation.

How a modโ€™s code talks to the game โ€” Cue, Library, Action, Condition (event), Expression.

How NPC behavior is defined โ€” Order definition, Interrupt, Attention.

Assets and XML schemas โ€” Macro, Component, god.xml, stationgroups.xml.

Player-facing UI โ€” Helper API, Globals, third-party APIs (SN Mod Support APIs).


Currently filled: the Station page is the only fully-populated entry. Other pages are placeholders to demonstrate the navigation structure.