Fix CA1852

This commit is contained in:
RoosterDragon
2023-03-13 18:49:21 +00:00
committed by Pavel Penev
parent 277699cbd5
commit f4af5c1764
310 changed files with 510 additions and 507 deletions

View File

@@ -13,7 +13,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits.Sound
{
class ActorLostNotificationInfo : ConditionalTraitInfo
sealed class ActorLostNotificationInfo : ConditionalTraitInfo
{
[NotificationReference("Speech")]
[Desc("Speech notification to play.")]
@@ -27,7 +27,7 @@ namespace OpenRA.Mods.Common.Traits.Sound
public override object Create(ActorInitializer init) { return new ActorLostNotification(this); }
}
class ActorLostNotification : ConditionalTrait<ActorLostNotificationInfo>, INotifyKilled
sealed class ActorLostNotification : ConditionalTrait<ActorLostNotificationInfo>, INotifyKilled
{
public ActorLostNotification(ActorLostNotificationInfo info)
: base(info) { }

View File

@@ -15,7 +15,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits.Sound
{
[Desc("Plays a looping audio file at the actor position. Attach this to the `World` actor to cover the whole map.")]
class AmbientSoundInfo : ConditionalTraitInfo
sealed class AmbientSoundInfo : ConditionalTraitInfo
{
[FieldLoader.Require]
public readonly string[] SoundFiles = null;
@@ -31,7 +31,7 @@ namespace OpenRA.Mods.Common.Traits.Sound
public override object Create(ActorInitializer init) { return new AmbientSound(init.Self, this); }
}
class AmbientSound : ConditionalTrait<AmbientSoundInfo>, ITick, INotifyRemovedFromWorld
sealed class AmbientSound : ConditionalTrait<AmbientSoundInfo>, ITick, INotifyRemovedFromWorld
{
readonly bool loop;
readonly HashSet<ISound> currentSounds = new();