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

@@ -29,20 +29,20 @@ namespace OpenRA.Mods.Common.Traits
public class ActorMap : IActorMap, ITick, INotifyCreated
{
class InfluenceNode
sealed class InfluenceNode
{
public InfluenceNode Next;
public SubCell SubCell;
public Actor Actor;
}
class Bin
sealed class Bin
{
public readonly List<Actor> Actors = new();
public readonly List<ProximityTrigger> ProximityTriggers = new();
}
class CellTrigger
sealed class CellTrigger
{
public readonly CPos[] Footprint;
public bool Dirty;
@@ -89,7 +89,7 @@ namespace OpenRA.Mods.Common.Traits
}
}
class ProximityTrigger : IDisposable
sealed class ProximityTrigger : IDisposable
{
public WPos TopLeft { get; private set; }
public WPos BottomRight { get; private set; }

View File

@@ -27,12 +27,12 @@ namespace OpenRA.Mods.Common.Traits
}
[TraitLocation(SystemActors.World)]
class BridgeLayerInfo : TraitInfo
sealed class BridgeLayerInfo : TraitInfo
{
public override object Create(ActorInitializer init) { return new BridgeLayer(init.World); }
}
class BridgeLayer
sealed class BridgeLayer
{
readonly CellLayer<Actor> bridges;

View File

@@ -18,14 +18,14 @@ namespace OpenRA.Mods.Common.Traits
[Desc("Sets a custom terrain type for cells that are obscured by back-facing cliffs.",
"This trait replicates the default CliffBackImpassability=2 behaviour from the TS/RA2 rules.ini.")]
[TraitLocation(SystemActors.World | SystemActors.EditorWorld)]
class CliffBackImpassabilityLayerInfo : TraitInfo
sealed class CliffBackImpassabilityLayerInfo : TraitInfo
{
public readonly string TerrainType = "Impassable";
public override object Create(ActorInitializer init) { return new CliffBackImpassabilityLayer(this); }
}
class CliffBackImpassabilityLayer : IWorldLoaded
sealed class CliffBackImpassabilityLayer : IWorldLoaded
{
readonly CliffBackImpassabilityLayerInfo info;

View File

@@ -144,7 +144,7 @@ namespace OpenRA.Mods.Common.Traits
string Text { get; }
}
class OpenMapAction : IEditorAction
sealed class OpenMapAction : IEditorAction
{
[TranslationReference]
const string Opened = "notification-opened";

View File

@@ -60,7 +60,7 @@ namespace OpenRA.Mods.Common.Traits
SeparateTeamSpawnsCheckboxLocked);
}
class AssignSpawnLocationsState
sealed class AssignSpawnLocationsState
{
public CPos[] SpawnLocations;
public List<int> AvailableSpawnPoints;

View File

@@ -15,7 +15,7 @@ using OpenRA.Traits;
namespace OpenRA.Mods.Common.Traits
{
[TraitLocation(SystemActors.World)]
class StartGameNotificationInfo : TraitInfo
sealed class StartGameNotificationInfo : TraitInfo
{
[NotificationReference("Speech")]
public readonly string Notification = "StartGame";
@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Traits
public override object Create(ActorInitializer init) { return new StartGameNotification(this); }
}
class StartGameNotification : IWorldLoaded, INotifyGameLoaded, INotifyGameSaved
sealed class StartGameNotification : IWorldLoaded, INotifyGameLoaded, INotifyGameSaved
{
readonly StartGameNotificationInfo info;
public StartGameNotification(StartGameNotificationInfo info)

View File

@@ -35,7 +35,7 @@ namespace OpenRA.Mods.Common.Traits
public sealed class TerrainLighting : ITerrainLighting
{
class LightSource
sealed class LightSource
{
public readonly WPos Pos;
public readonly CPos Cell;

View File

@@ -28,7 +28,7 @@ namespace OpenRA.Mods.Common.Traits
public class WarheadDebugOverlay : IRenderAnnotations
{
class WHImpact
sealed class WHImpact
{
public readonly WPos CenterPosition;
public readonly WDist[] Range;