1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Redesign map editor rendering

This commit is contained in:
nordsoft
2023-10-20 01:25:06 +02:00
parent d03b75696a
commit b9a660f6c3
7 changed files with 151 additions and 240 deletions

View File

@ -208,10 +208,11 @@ bool EditorObstaclePlacer::isInTheMap(const int3& tile)
return map->isInTheMap(tile);
}
void EditorObstaclePlacer::placeObstacles(CRandomGenerator & rand)
std::set<CGObjectInstance*> EditorObstaclePlacer::placeObstacles(CRandomGenerator & rand)
{
auto obstacles = createObstacles(rand);
finalInsertion(map->getEditManager(), obstacles);
return obstacles;
}
VCMI_LIB_NAMESPACE_END