Skip to content

Commit

Permalink
feat: search_path arguments from Object to JsArray
Browse files Browse the repository at this point in the history
Creep and other types can convert to JsArray via as_ref() but not Object
  • Loading branch information
wtfrank committed Mar 20, 2024
1 parent 446e93f commit 8915d18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game/pathfinder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ extern "C" {
/// without costMatrix specified (see below) use terrain data only.
#[wasm_bindgen(js_name = searchPath)]
pub fn search_path(
origin: &Object,
goal: &Object,
origin: &JsValue,
goal: &JsValue,
options: Option<&SearchPathOptions>,
) -> SearchResults;
}
Expand Down

0 comments on commit 8915d18

Please sign in to comment.