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

Method activateRegion

source/game/StarSpawner.cpp:61–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void Spawner::activateRegion(RectF region) {
62 for (auto const& cell : cellIndexesForRange(region)) {
63 if (m_facade && m_facade->signalRegion(cellRegion(cell))) {
64 if (m_active && !m_activeSpawnCells.contains(cell))
65 spawnInCell(cell);
66 m_activeSpawnCells[cell] = m_spawnCellLifetime;
67 }
68 }
69}
70
71void Spawner::activateEmptyRegion(RectF region) {
72 for (auto const& cell : cellIndexesForRange(region))

Callers

nothing calls this directly

Calls 2

signalRegionMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected