1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-23 00:28:08 +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

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