StarMap - iimurpyh/pilot-lua GitHub Wiki

A part which displays information about solar systems and planet bodies within those systems.

Table of contents


iterator StarMap:GetBodies()

Returns an iterator which goes over the coordinates of every stellar body in the current system. Coordinates are in Coordinate String format.

for k, v in StarMap:GetBodies() do
  print(k, v) --> v is coordinates, k is null.
end

iterator StarMap:GetSystems()

Returns an iterator which goes over the coordinates of every solar system that the StarMap can see. Visible range is the same as the StarMap, 20x20 centered on your current location. Coordinates are in Coordinate String format.

for k, v in StarMap:GetSystems() do
  print(k, v) --> v is coordinates, k is null.
end