andriyDev / landmass

A navigation system for video games written in Rust.
Apache License 2.0
30 stars 2 forks source link

Refactor pathing slightly to clean it up. #51

Closed andriyDev closed 3 months ago

andriyDev commented 3 months ago

This is not a behaviour change, just a slight refactor.

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 92.77108% with 6 lines in your changes missing coverage. Please review.

Project coverage is 97.0%. Comparing base (ec7dff4) to head (3acc88d).

Additional details and impacted files | [Files](https://app.codecov.io/gh/andriyDev/landmass/pull/51?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None) | Coverage Δ | | |---|---|---| | [crates/landmass/src/astar.rs](https://app.codecov.io/gh/andriyDev/landmass/pull/51?src=pr&el=tree&filepath=crates%2Flandmass%2Fsrc%2Fastar.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-Y3JhdGVzL2xhbmRtYXNzL3NyYy9hc3Rhci5ycw==) | `93.3% <100.0%> (-0.6%)` | :arrow_down: | | [crates/landmass/src/pathfinding\_test.rs](https://app.codecov.io/gh/andriyDev/landmass/pull/51?src=pr&el=tree&filepath=crates%2Flandmass%2Fsrc%2Fpathfinding_test.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-Y3JhdGVzL2xhbmRtYXNzL3NyYy9wYXRoZmluZGluZ190ZXN0LnJz) | `99.7% <100.0%> (-0.1%)` | :arrow_down: | | [crates/landmass/src/pathfinding.rs](https://app.codecov.io/gh/andriyDev/landmass/pull/51?src=pr&el=tree&filepath=crates%2Flandmass%2Fsrc%2Fpathfinding.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-Y3JhdGVzL2xhbmRtYXNzL3NyYy9wYXRoZmluZGluZy5ycw==) | `99.2% <85.7%> (-0.8%)` | :arrow_down: | | [crates/landmass/src/lib.rs](https://app.codecov.io/gh/andriyDev/landmass/pull/51?src=pr&el=tree&filepath=crates%2Flandmass%2Fsrc%2Flib.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-Y3JhdGVzL2xhbmRtYXNzL3NyYy9saWIucnM=) | `93.3% <81.8%> (+1.9%)` | :arrow_up: | | [crates/landmass/src/astar\_test.rs](https://app.codecov.io/gh/andriyDev/landmass/pull/51?src=pr&el=tree&filepath=crates%2Flandmass%2Fsrc%2Fastar_test.rs&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=None#diff-Y3JhdGVzL2xhbmRtYXNzL3NyYy9hc3Rhcl90ZXN0LnJz) | `98.2% <88.0%> (+<0.1%)` | :arrow_up: |