Skip to content

Commit

Permalink
Fix CS1573
Browse files Browse the repository at this point in the history
  • Loading branch information
RoosterDragon committed Feb 24, 2023
1 parent 14903b4 commit b859537
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions OpenRA.Mods.Common/Pathfinder/PathSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static void AddInitialCells(World world, Locomotor locomotor, IEnumerable<CPos>
/// The search can skip some areas of the search space, meaning it has less work to do.
/// </param>
/// <param name="targetPredicate">Determines if the given cell is the target.</param>
/// <param name="recorder">If provided, will record all nodes explored by searches performed.</param>
PathSearch(IPathGraph graph, Func<CPos, int> heuristic, int heuristicWeightPercentage, Func<CPos, bool> targetPredicate, IRecorder recorder)
{
Graph = graph;
Expand Down
2 changes: 2 additions & 0 deletions OpenRA.Mods.Common/WorldExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ public static class WorldExtensions
/// <param name="lineStart">The position the line should start at</param>
/// <param name="lineEnd">The position the line should end at</param>
/// <param name="lineWidth">How close an actor's health radius needs to be to the line to be considered 'intersected' by the line</param>
/// <param name="onlyBlockers">If set, only considers the size of actors that have an <see cref="IBlocksProjectiles"/>
/// trait which may improve search performance. However does NOT filter the returned actors on this trait.</param>
/// <returns>A list of all the actors intersected by the line</returns>
public static IEnumerable<Actor> FindActorsOnLine(this World world, WPos lineStart, WPos lineEnd, WDist lineWidth, bool onlyBlockers = false)
{
Expand Down
1 change: 0 additions & 1 deletion OpenRA.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<!-- Rules related to generating XML documentation that we need to silence. -->
<!-- These are here because of GenerateDocumentationFile, which is a workaround for forcing rule IDE0005 to work outside of an IDE. -->
<Rules AnalyzerId="Microsoft.CodeAnalysis.CSharp" RuleNamespace="Microsoft.CodeAnalysis.CSharp">
<Rule Id="CS1573" Action="None" /><!-- Parameter has no matching param tag in the XML comment. -->
<Rule Id="CS1591" Action="None" /><!-- Missing XML comment for publicly visible type or member. -->
</Rules>

Expand Down

0 comments on commit b859537

Please sign in to comment.