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

Method queueSectorActivation

source/game/StarWorldStorage.cpp:175–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void WorldStorage::queueSectorActivation(Sector sector) {
176 if (auto p = m_sectorMetadata.ptr(sector)) {
177 p->timeToLive = randomizedSectorTTL();
178 // Don't bother queueing the sector if it is already fully loaded
179 if (p->loadLevel == SectorLoadLevel::Loaded && p->generationLevel == SectorGenerationLevel::Complete)
180 return;
181 }
182
183 auto p = m_generationQueue.insert(sector, m_generationQueueTimeToLive);
184 m_generationQueue.toFront(p.first);
185}
186
187void WorldStorage::triggerTerraformSector(Sector sector) {
188 try {

Callers 1

signalRegionMethod · 0.80

Calls 3

ptrMethod · 0.45
insertMethod · 0.45
toFrontMethod · 0.45

Tested by

no test coverage detected