kotcity4 / kotcity.data / CityMap / buildRoad

buildRoad

fun buildRoad(from: BlockCoordinate, to: BlockCoordinate, isOneWay: Boolean = false): Unit

Builds a (possibly) one-way road or standard road

Parameters

from - start BlockCoordinate

to - end BlockCoordinate

isOneWay - if it's true, this is a one way road. The direction starts at from and goes to to