mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +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)); | ||||
|   | ||||
| @@ -91,6 +91,7 @@ public: | ||||
| 	void deselectRange(const MapRect & rect) override; | ||||
| 	void selectAll() override; | ||||
| 	void clearSelection() override; | ||||
| 	void setSelection(std::vector<int3> & vec); | ||||
| }; | ||||
|  | ||||
| /// Selection class to select objects. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user