Fix IDE0090

This commit is contained in:
RoosterDragon
2023-04-05 19:34:12 +01:00
committed by Pavel Penev
parent 164abfdae1
commit 8a285f9b19
385 changed files with 790 additions and 794 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenRA.Mods.Common.Activities
Target target;
Target lastVisibleTarget;
bool useLastVisibleTarget;
readonly List<WPos> positionBuffer = new List<WPos>();
readonly List<WPos> positionBuffer = new();
public Fly(Actor self, in Target t, WDist nearEnough, WPos? initialTargetPosition = null, Color? targetLineColor = null)
: this(self, t, initialTargetPosition, targetLineColor)

View File

@@ -106,7 +106,7 @@ namespace OpenRA.Mods.Common.Activities
return TickChild(self);
}
readonly List<CPos> searchCells = new List<CPos>();
readonly List<CPos> searchCells = new();
int searchCellsTick = -1;
List<CPos> CalculatePathToTarget(Actor self, BlockedByActor check)

View File

@@ -23,7 +23,7 @@ namespace OpenRA.Mods.Common.Activities
{
public readonly string ToActor;
public CVec Offset = CVec.Zero;
public WAngle Facing = new WAngle(384);
public WAngle Facing = new(384);
public string[] Sounds = Array.Empty<string>();
public string Notification = null;
public string TextNotification = null;