diff --git a/OpenRA.Mods.Common/Pathfinder/PathSearch.cs b/OpenRA.Mods.Common/Pathfinder/PathSearch.cs index 66757549b3..befff0d755 100644 --- a/OpenRA.Mods.Common/Pathfinder/PathSearch.cs +++ b/OpenRA.Mods.Common/Pathfinder/PathSearch.cs @@ -162,6 +162,7 @@ namespace OpenRA.Mods.Common.Pathfinder /// The search can skip some areas of the search space, meaning it has less work to do. /// /// Determines if the given cell is the target. + /// If provided, will record all nodes explored by searches performed. PathSearch(IPathGraph graph, Func heuristic, int heuristicWeightPercentage, Func targetPredicate, IRecorder recorder) { Graph = graph; diff --git a/OpenRA.Mods.Common/WorldExtensions.cs b/OpenRA.Mods.Common/WorldExtensions.cs index 08ea12abc9..a6a309be93 100644 --- a/OpenRA.Mods.Common/WorldExtensions.cs +++ b/OpenRA.Mods.Common/WorldExtensions.cs @@ -24,6 +24,8 @@ namespace OpenRA.Mods.Common /// The position the line should start at /// The position the line should end at /// How close an actor's health radius needs to be to the line to be considered 'intersected' by the line + /// If set, only considers the size of actors that have an + /// trait which may improve search performance. However does NOT filter the returned actors on this trait. /// A list of all the actors intersected by the line public static IEnumerable FindActorsOnLine(this World world, WPos lineStart, WPos lineEnd, WDist lineWidth, bool onlyBlockers = false) { diff --git a/OpenRA.ruleset b/OpenRA.ruleset index 4fd5d88b5a..6879b0af32 100644 --- a/OpenRA.ruleset +++ b/OpenRA.ruleset @@ -6,7 +6,6 @@ -