1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Merge pull request #3083 from Nordsoft91/editor-improvements-1.4

Redesign map editor rendering
This commit is contained in:
Ivan Savenko
2023-10-22 16:56:39 +03:00
committed by GitHub
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

View File

@@ -67,10 +67,10 @@ public:
bool isInTheMap(const int3& tile) override;
void placeObstacles(CRandomGenerator& rand);
std::set<CGObjectInstance*> placeObstacles(CRandomGenerator& rand);
private:
CMap* map;
};
VCMI_LIB_NAMESPACE_END
VCMI_LIB_NAMESPACE_END