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

Method removeMappedObject

source/game/StarPlayerUniverseMap.cpp:171–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171void PlayerUniverseMap::removeMappedObject(CelestialCoordinate const& system, Uuid const& uuid) {
172 auto& universeMap = m_universeMaps[*m_serverUuid];
173 if (auto systemMap = universeMap.systems.ptr(system.location()))
174 systemMap->mappedObjects.remove(uuid);
175}
176
177void PlayerUniverseMap::filterMappedObjects(CelestialCoordinate const& system, List<Uuid> const& allowed) {
178 auto& universeMap = m_universeMaps[*m_serverUuid];

Callers 1

handleIncomingPacketMethod · 0.80

Calls 3

ptrMethod · 0.45
locationMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected