Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
Silence IDE0305.
This commit is contained in:
committed by
Pavel Penev
parent
0740991c12
commit
79454d8fd2
@@ -22,11 +22,11 @@ namespace OpenRA.Mods.Common.Traits.Sound
|
||||
|
||||
[Desc("Initial delay (in ticks) before playing the sound for the first time.",
|
||||
"Two values indicate a random delay range.")]
|
||||
public readonly int[] Delay = { 0 };
|
||||
public readonly int[] Delay = [0];
|
||||
|
||||
[Desc("Interval between playing the sound (in ticks).",
|
||||
"Two values indicate a random delay range.")]
|
||||
public readonly int[] Interval = { 0 };
|
||||
public readonly int[] Interval = [0];
|
||||
|
||||
public override object Create(ActorInitializer init) { return new AmbientSound(init.Self, this); }
|
||||
}
|
||||
@@ -34,7 +34,7 @@ namespace OpenRA.Mods.Common.Traits.Sound
|
||||
sealed class AmbientSound : ConditionalTrait<AmbientSoundInfo>, ITick, INotifyRemovedFromWorld
|
||||
{
|
||||
readonly bool loop;
|
||||
readonly HashSet<ISound> currentSounds = new();
|
||||
readonly HashSet<ISound> currentSounds = [];
|
||||
WPos cachedPosition;
|
||||
int delay;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user