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

Method activateSector

source/game/StarWorldStorage.cpp:164–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void WorldStorage::activateSector(Sector sector) {
165 try {
166 generateSectorToLevel(sector, SectorGenerationLevel::Complete);
167 setSectorTimeToLive(sector, randomizedSectorTTL());
168 } catch (std::exception const& e) {
169 m_db.rollback();
170 m_db.close();
171 throw WorldStorageException(strf("Failed to load sector {}", sector), e);
172 }
173}
174
175void WorldStorage::queueSectorActivation(Sector sector) {
176 if (auto p = m_sectorMetadata.ptr(sector)) {

Callers 1

generateRegionMethod · 0.80

Calls 3

strfFunction · 0.85
rollbackMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected