Skip to content

Commit

Permalink
Bring back SearchResults::opaque_path() (#360)
Browse files Browse the repository at this point in the history
  • Loading branch information
smessmer authored Oct 20, 2021
1 parent f23f8e1 commit cd111ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pathfinder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsValue> {}
Expand Down Expand Up @@ -428,4 +432,4 @@ fn search_real<F>(from: Position, goal: &JsValue, options: Option<SearchOptions<
} else {
PathFinder::search_internal(&from, goal, &JsValue::UNDEFINED)
}
}
}

0 comments on commit cd111ce

Please sign in to comment.