| 59 | } |
| 60 | |
| 61 | void 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 | |
| 71 | void Spawner::activateEmptyRegion(RectF region) { |
| 72 | for (auto const& cell : cellIndexesForRange(region)) |
nothing calls this directly
no test coverage detected