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

@@ -24,10 +24,10 @@ namespace OpenRA.Mods.Common.Traits
[ActorReference(typeof(AircraftInfo))]
public readonly string UnitType = "badr.bomber";
public readonly int SquadSize = 1;
public readonly WVec SquadOffset = new WVec(-1536, 1536, 0);
public readonly WVec SquadOffset = new(-1536, 1536, 0);
public readonly int QuantizedFacings = 32;
public readonly WDist Cordon = new WDist(5120);
public readonly WDist Cordon = new(5120);
[ActorReference]
[Desc("Actor to spawn when the aircraft start attacking")]

View File

@@ -82,7 +82,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly int FlightDelay = 400;
[Desc("Visual ascent velocity in WDist / tick.")]
public readonly WDist FlightVelocity = new WDist(512);
public readonly WDist FlightVelocity = new(512);
[Desc("Descend immediately on the target.")]
public readonly bool SkipAscent = false;

View File

@@ -24,7 +24,7 @@ namespace OpenRA.Mods.Common.Traits
[ActorReference(typeof(AircraftInfo))]
public readonly string UnitType = "badr";
public readonly int SquadSize = 1;
public readonly WVec SquadOffset = new WVec(-1536, 1536, 0);
public readonly WVec SquadOffset = new(-1536, 1536, 0);
[NotificationReference("Speech")]
[Desc("Speech notification to play when entering the drop zone.")]
@@ -37,7 +37,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly int QuantizedFacings = 32;
[Desc("Spawn and remove the plane this far outside the map.")]
public readonly WDist Cordon = new WDist(5120);
public readonly WDist Cordon = new(5120);
[ActorReference(typeof(PassengerInfo))]
[Desc("Troops to be delivered. They will be distributed between the planes if SquadSize > 1.")]

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Traits
public class SupportPowerManager : ITick, IResolveOrder, ITechTreeElement
{
public readonly Actor Self;
public readonly Dictionary<string, SupportPowerInstance> Powers = new Dictionary<string, SupportPowerInstance>();
public readonly Dictionary<string, SupportPowerInstance> Powers = new();
public readonly DeveloperMode DevMode;
public readonly TechTree TechTree;
@@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common.Traits
public readonly string Key;
public readonly List<SupportPower> Instances = new List<SupportPower>();
public readonly List<SupportPower> Instances = new();
public readonly int TotalTicks;
protected int remainingSubTicks;