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

Method loadSector

source/game/StarWorldStorage.cpp:153–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void WorldStorage::loadSector(Sector sector) {
154 try {
155 loadSectorToLevel(sector, SectorLoadLevel::Loaded);
156 setSectorTimeToLive(sector, randomizedSectorTTL());
157 } catch (std::exception const& e) {
158 m_db.rollback();
159 m_db.close();
160 throw WorldStorageException(strf("Failed to load sector {}", sector), e);
161 }
162}
163
164void WorldStorage::activateSector(Sector sector) {
165 try {

Callers 4

signalRegionMethod · 0.45
loadSectorToLevelMethod · 0.45
loadNetworkMethod · 0.45
TESTFunction · 0.45

Calls 3

strfFunction · 0.85
rollbackMethod · 0.80
closeMethod · 0.45

Tested by 1

TESTFunction · 0.36