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

@@ -19,8 +19,8 @@ namespace OpenRA.Traits
[TraitLocation(SystemActors.World)]
public class ScreenShakerInfo : TraitInfo
{
public readonly float2 MinMultiplier = new float2(-3, -3);
public readonly float2 MaxMultiplier = new float2(3, 3);
public readonly float2 MinMultiplier = new(-3, -3);
public readonly float2 MaxMultiplier = new(3, 3);
public override object Create(ActorInitializer init) { return new ScreenShaker(this); }
}
@@ -29,7 +29,7 @@ namespace OpenRA.Traits
{
readonly ScreenShakerInfo info;
WorldRenderer worldRenderer;
readonly List<ShakeEffect> shakeEffects = new List<ShakeEffect>();
readonly List<ShakeEffect> shakeEffects = new();
int ticks = 0;
public ScreenShaker(ScreenShakerInfo info)