mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-25 22:42:04 +02:00
Zone shapes & terrains work nicely.
This commit is contained in:
@@ -98,6 +98,12 @@ void CTerrainSelection::deselectRange(const MapRect & rect)
|
||||
});
|
||||
}
|
||||
|
||||
void CTerrainSelection::setSelection(std::vector<int3> & vec)
|
||||
{
|
||||
for (auto pos : vec)
|
||||
this->select(pos);
|
||||
}
|
||||
|
||||
void CTerrainSelection::selectAll()
|
||||
{
|
||||
selectRange(MapRect(int3(0, 0, 0), getMap()->width, getMap()->height));
|
||||
|
||||
Reference in New Issue
Block a user