kotcity4 / kotcity.data / BlockCoordinate / iterate

iterate

fun iterate(from: BlockCoordinate, to: BlockCoordinate, callback: (BlockCoordinate) -> Unit): Unit

Used to call a function on rectangle of BlockCoordinates

Parameters

from - top-left corner to start from

to - bottom-right corner to end at

callback - function that we should call, passing in the current BlockCoordinate