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

Method addMappedCoordinate

source/game/StarPlayerUniverseMap.cpp:151–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void PlayerUniverseMap::addMappedCoordinate(CelestialCoordinate const& coordinate) {
152 if (coordinate.isNull())
153 return;
154
155 auto& universeMap = m_universeMaps[*m_serverUuid];
156 auto& systemMap = universeMap.systems[coordinate.location()];
157 if (!coordinate.isSystem())
158 systemMap.mappedPlanets.add(coordinate.planet());
159}
160
161void PlayerUniverseMap::addMappedObject(CelestialCoordinate const& system, Uuid const& uuid, String const& typeName, Maybe<CelestialOrbit> const& orbit, JsonObject parameters) {
162 MappedObject object {

Callers 3

reloadPlayerMethod · 0.80
updateMethod · 0.80
handleIncomingPacketMethod · 0.80

Calls 5

isSystemMethod · 0.80
planetMethod · 0.80
isNullMethod · 0.45
locationMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected