MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / orbitTarget

Method orbitTarget

source/game/StarSystemWorld.cpp:405–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

403}
404
405Maybe<CelestialCoordinate> SystemObject::orbitTarget() const {
406 if (m_orbit.get())
407 return m_orbit.get()->target;
408 else
409 return {};
410}
411
412Maybe<CelestialOrbit> SystemObject::orbit() const {
413 return m_orbit.get();

Callers 3

serverUpdateMethod · 0.80
spawnObjectsMethod · 0.80
locationSkyParametersMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected