Function veloren_world::civ::find_path

source ·
fn find_path(
    ctx: &mut GenCtx<'_, impl Rng>,
    get_bridge: impl Fn(Vec2<i32>) -> Option<Vec2<i32>>,
    a: Vec2<i32>,
    b: Vec2<i32>,
    max_path_cost: f32
) -> Option<(Path<Vec2<i32>>, f32)>
Expand description

Attempt to find a path between two locations