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

Method signalSystem

source/game/StarCelestialDatabase.cpp:635–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

633}
634
635void CelestialSlaveDatabase::signalSystem(CelestialCoordinate const& system) {
636 RecursiveMutexLocker locker(m_mutex);
637
638 if (auto chunk = m_chunkCache.ptr(chunkIndexFor(system))) {
639 if (!chunk->systemObjects.contains(system.location()))
640 m_pendingSystemRequests[system.location()] = Timer();
641 } else {
642 signalRegion(RectI::withSize(system.location().vec2(), {1, 1}));
643 }
644}
645
646List<CelestialRequest> CelestialSlaveDatabase::pullRequests() {
647 RecursiveMutexLocker locker(m_mutex);

Callers 1

updateMethod · 0.80

Calls 5

vec2Method · 0.80
TimerClass · 0.50
ptrMethod · 0.45
containsMethod · 0.45
locationMethod · 0.45

Tested by

no test coverage detected