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:
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user