pub fn calculate_path(opts: CalculatePathOpts) -> Option<PathFoundEvent>
Expand description
Calculate the PathFoundEvent
for the given pathfinder options.
You usually want to just use PathfinderClientExt::goto
or send a
GotoEvent
instead of calling this directly.
You are expected to immediately send the PathFoundEvent
you received after
calling this function. None
will be returned if the pathfinding was
interrupted by another path calculation.