MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / setMapSelectionArea

Function setMapSelectionArea

src/OpenLoco/src/Map/MapSelection.cpp:193–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191 }
192
193 void setMapSelectionArea(const Pos2& locA, const Pos2& locB)
194 {
195 _mapSelectionAX = std::min(locA.x, locB.x);
196 _mapSelectionAY = std::min(locA.y, locB.y);
197 _mapSelectionBX = std::max(locA.x, locB.x);
198 _mapSelectionBY = std::max(locA.y, locB.y);
199 }
200
201 std::pair<Pos2, Pos2> getMapSelectionArea()
202 {

Callers 6

onToolUpdateFunction · 0.85
onToolUpdateFunction · 0.85
onToolUpdateFunction · 0.85
onToolUpdateFunction · 0.85
onToolDragFunction · 0.85
onToolDragFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected