diff --git a/src/pathfinder.rs b/src/pathfinder.rs index ac366a19..97208332 100644 --- a/src/pathfinder.rs +++ b/src/pathfinder.rs @@ -127,6 +127,10 @@ impl SearchResults { .map(|p: RoomPosition| p.into()) .collect() } + + pub fn opaque_path(&self) -> Array { + self.path_internal() + } } pub trait RoomCostResult: Into {} @@ -428,4 +432,4 @@ fn search_real(from: Position, goal: &JsValue, options: Option