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

Method addMappedObject

source/game/StarPlayerUniverseMap.cpp:161–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void PlayerUniverseMap::addMappedObject(CelestialCoordinate const& system, Uuid const& uuid, String const& typeName, Maybe<CelestialOrbit> const& orbit, JsonObject parameters) {
162 MappedObject object {
163 typeName,
164 orbit,
165 parameters
166 };
167 auto& universeMap = m_universeMaps[*m_serverUuid];
168 universeMap.systems[system.location()].mappedObjects.set(uuid, object);
169}
170
171void PlayerUniverseMap::removeMappedObject(CelestialCoordinate const& system, Uuid const& uuid) {
172 auto& universeMap = m_universeMaps[*m_serverUuid];

Callers 1

updateMethod · 0.80

Calls 2

setMethod · 0.45
locationMethod · 0.45

Tested by

no test coverage detected