diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-02-20 09:49:42 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 09:49:42 +1100 |
commit | aa987a217779e71f97ee4c9cce531aec1c861bf8 (patch) | |
tree | e51fcce110306d93bf93870f13a5ff7d6b575427 /source/game/StarCelestialDatabase.cpp | |
parent | d0099a6d790b66f21e4e266e569d64fb82fb0a81 (diff) | |
parent | 1c89042016c739815b2d70bcbef4673eef6b63e0 (diff) |
Merge branch 'main' into small-fixes
Diffstat (limited to 'source/game/StarCelestialDatabase.cpp')
-rw-r--r-- | source/game/StarCelestialDatabase.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/game/StarCelestialDatabase.cpp b/source/game/StarCelestialDatabase.cpp index dd0bc51..c1b9a7f 100644 --- a/source/game/StarCelestialDatabase.cpp +++ b/source/game/StarCelestialDatabase.cpp @@ -160,11 +160,11 @@ CelestialResponse CelestialMasterDatabase::respondToRequest(CelestialRequest con auto chunk = getChunk(*chunkLocation); // System objects are sent by separate system requests. chunk.systemObjects.clear(); - return makeLeft(move(chunk)); + return makeLeft(std::move(chunk)); } else if (auto systemLocation = request.maybeRight()) { auto const& chunk = getChunk(chunkIndexFor(*systemLocation)); CelestialSystemObjects systemObjects = {*systemLocation, chunk.systemObjects.get(*systemLocation)}; - return makeRight(move(systemObjects)); + return makeRight(std::move(systemObjects)); } else { return CelestialResponse(); } @@ -435,7 +435,7 @@ CelestialChunk CelestialMasterDatabase::produceChunk(Vec2I const& chunkIndex) co for (auto const& systemLocation : systemLocations) { if (auto systemInformation = produceSystem(random, systemLocation)) { chunkData.systemParameters[systemLocation] = systemInformation.get().first; - chunkData.systemObjects[systemLocation] = move(systemInformation.get().second); + chunkData.systemObjects[systemLocation] = std::move(systemInformation.get().second); if (systemInformation.get().first.getParameter("magnitude").toFloat() >= m_generationInformation.minimumConstellationMagnitude) @@ -527,11 +527,11 @@ Maybe<pair<CelestialParameters, HashMap<int, CelestialPlanet>>> CelestialMasterD } } - systemObjects[planetPair.first] = move(planet); + systemObjects[planetPair.first] = std::move(planet); } } - return pair<CelestialParameters, HashMap<int, CelestialPlanet>>{move(systemParameters), move(systemObjects)}; + return pair<CelestialParameters, HashMap<int, CelestialPlanet>>{std::move(systemParameters), std::move(systemObjects)}; } List<CelestialConstellation> CelestialMasterDatabase::produceConstellations( @@ -619,7 +619,7 @@ List<CelestialConstellation> CelestialMasterDatabase::produceConstellations( CelestialSlaveDatabase::CelestialSlaveDatabase(CelestialBaseInformation baseInformation) { auto config = Root::singleton().assets()->json("/celestial.config"); - m_baseInformation = move(baseInformation); + m_baseInformation = std::move(baseInformation); m_requestTimeout = config.getFloat("requestTimeout"); } @@ -679,12 +679,12 @@ void CelestialSlaveDatabase::pushResponses(List<CelestialResponse> responses) { for (auto& response : responses) { if (auto celestialChunk = response.leftPtr()) { m_pendingChunkRequests.remove(celestialChunk->chunkIndex); - m_chunkCache.set(celestialChunk->chunkIndex, move(*celestialChunk)); + m_chunkCache.set(celestialChunk->chunkIndex, std::move(*celestialChunk)); } else if (auto celestialSystemObjects = response.rightPtr()) { m_pendingSystemRequests.remove(celestialSystemObjects->systemLocation); auto chunkLocation = chunkIndexFor(celestialSystemObjects->systemLocation); if (auto chunk = m_chunkCache.ptr(chunkLocation)) - chunk->systemObjects[celestialSystemObjects->systemLocation] = move(celestialSystemObjects->planets); + chunk->systemObjects[celestialSystemObjects->systemLocation] = std::move(celestialSystemObjects->planets); } } } |