Function screeps::game::map::find_exit

source ·
pub fn find_exit<F>(
    from: RoomName,
    to: RoomName,
    options: Option<FindRouteOptions<F>>
) -> Result<ExitDirection, ErrorCode>
where F: FnMut(RoomName, RoomName) -> f64,
Expand description

Get the exit direction from a given room leading toward a destination room, with an optional FindRouteOptions parameter allowing control over the costs to enter rooms.

Screeps documentation