Files
OpenRA/OpenRA.Mods.Common/Traits
RoosterDragon d2935672ca Fix the shape of the IPathFinder interface, ensure all path searches use it.
Some path searches, using PathSearch, were created directly at the callsite rather than using the pathfinder trait. This means some searches did not not benefit from the performance checks done in the pathfinder trait. It also means the pathfinder trait was not responsible for all pathing done in the game. Fix this with the following changes:
- Create a sensible shape for the IPathFinder interface and promote it to a trait interface, allowing theoretical replacements of the implementation. Ensure none of the concrete classes in OpenRA.Mods.Common.Pathfinder are exposed in the interface to ensure this is possible.
- Update the PathFinder class to implement the interface, and update several callsites manually running pathfinding code to instead call the IPathFinder interface.
- Overall, this allows any implementation of the IPathFinder interface to intercept and control all path searching performed by the game. Previously some searches would not have used it, and no alternate implementations were possible as the existing implementation was hardcoded into the interface shape.

Additionally:
- Move the responsibility of finding paths on completed path searches from pathfinder to path search, which is a more sensible location.
- Clean up the pathfinder pre-search optimizations.
2022-04-18 11:18:43 +01:00
..
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-12-06 13:19:28 +01:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-10-15 13:12:33 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-10-02 20:17:03 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-06-29 18:33:21 -05:00
2022-04-01 23:30:26 +02:00
2021-10-15 13:12:33 +02:00