| 283 | } |
| 284 | |
| 285 | void RandomBrush::paint(Vec2I position, Phase phase, DungeonGeneratorWriter* writer) const { |
| 286 | size_t rnd = (size_t)staticRandomI32(m_seed, position[0], position[1]); |
| 287 | m_brushes[rnd % m_brushes.size()]->paint(position, phase, writer); |
| 288 | } |
| 289 | |
| 290 | void ClearBrush::paint(Vec2I position, Phase phase, DungeonGeneratorWriter* writer) const { |
| 291 | if (phase != Phase::ClearPhase) |
no test coverage detected