Seal/abstract/virtual everything (#6739)

This commit is contained in:
mirrorcult
2022-02-16 00:23:23 -07:00
committed by GitHub
parent 4dfcacb86a
commit ec4d4688c7
1771 changed files with 2216 additions and 2164 deletions

View File

@@ -10,7 +10,7 @@ using Robust.Shared.Maths;
namespace Content.Server.Atmos.EntitySystems
{
[UsedImplicitly]
public class AirtightSystem : EntitySystem
public sealed class AirtightSystem : EntitySystem
{
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
@@ -132,7 +132,7 @@ namespace Content.Server.Atmos.EntitySystems
}
}
public class AirtightChanged : EntityEventArgs
public sealed class AirtightChanged : EntityEventArgs
{
public AirtightComponent Airtight;

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Map;
namespace Content.Server.Atmos.EntitySystems
{
/* doesn't seem to be a use for this at the moment, so it's disabled
public class AtmosExposedSystem : EntitySystem
public sealed class AtmosExposedSystem : EntitySystem
{}
*/

View File

@@ -4,7 +4,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly IConfigurationManager _cfg = default!;

View File

@@ -8,7 +8,7 @@ using Robust.Shared.Map;
namespace Content.Server.Atmos.EntitySystems;
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly IConsoleHost _consoleHost = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
private void ExcitedGroupAddTile(ExcitedGroup excitedGroup, TileAtmosphere tile)
{

View File

@@ -10,7 +10,7 @@ using DependencyAttribute = Robust.Shared.IoC.DependencyAttribute;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly IPrototypeManager _protoMan = default!;

View File

@@ -20,7 +20,7 @@ using Dependency = Robust.Shared.IoC.DependencyAttribute;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager = default!;
[Dependency] private readonly GasTileOverlaySystem _gasTileOverlaySystem = default!;
@@ -193,7 +193,7 @@ namespace Content.Server.Atmos.EntitySystems
/// <param name="mapGrid">The grid where to get the tile.</param>
/// <param name="tile">The indices of the tile.</param>
/// <returns></returns>
public virtual IEnumerable<AirtightComponent> GetObstructingComponents(IMapGrid mapGrid, Vector2i tile)
public IEnumerable<AirtightComponent> GetObstructingComponents(IMapGrid mapGrid, Vector2i tile)
{
foreach (var uid in mapGrid.GetAnchoredEntities(tile))
{

View File

@@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
private const int SpaceWindSoundCooldownCycles = 75;

View File

@@ -13,7 +13,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly IEntityLookup _lookup = default!;

View File

@@ -3,7 +3,7 @@ using Content.Shared.Atmos;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
private void ProcessCell(GridAtmosphereComponent gridAtmosphere, TileAtmosphere tile, int fireCount)
{

View File

@@ -14,7 +14,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly IRobustRandom _robustRandom = default!;
@@ -594,7 +594,7 @@ namespace Content.Server.Atmos.EntitySystems
PryTile(mapGrid, tile.GridIndices);
}
private class TileAtmosphereComparer : IComparer<TileAtmosphere?>
private sealed class TileAtmosphereComparer : IComparer<TileAtmosphere?>
{
public int Compare(TileAtmosphere? a, TileAtmosphere? b)
{

View File

@@ -12,7 +12,7 @@ using Robust.Shared.Timing;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
[Dependency] private readonly IGameTiming _gameTiming = default!;

View File

@@ -4,7 +4,7 @@ using Content.Shared.Atmos;
namespace Content.Server.Atmos.EntitySystems
{
public partial class AtmosphereSystem
public sealed partial class AtmosphereSystem
{
private void Superconduct(GridAtmosphereComponent gridAtmosphere, TileAtmosphere tile)
{

View File

@@ -21,7 +21,7 @@ namespace Content.Server.Atmos.EntitySystems
/// This is our SSAir equivalent, if you need to interact with or query atmos in any way, go through this.
/// </summary>
[UsedImplicitly]
public partial class AtmosphereSystem : SharedAtmosphereSystem
public sealed partial class AtmosphereSystem : SharedAtmosphereSystem
{
[Dependency] private readonly IMapManager _mapManager = default!;
[Dependency] private readonly AdminLogSystem _adminLog = default!;

View File

@@ -11,7 +11,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Atmos.EntitySystems
{
public class BarotraumaSystem : EntitySystem
public sealed class BarotraumaSystem : EntitySystem
{
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;
[Dependency] private readonly DamageableSystem _damageableSystem = default!;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Atmos.EntitySystems
{
[UsedImplicitly]
public class GasAnalyzerSystem : EntitySystem
public sealed class GasAnalyzerSystem : EntitySystem
{
public override void Update(float frameTime)
{

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Localization;
namespace Content.Server.Atmos.EntitySystems
{
[UsedImplicitly]
public class GasTankSystem : EntitySystem
public sealed class GasTankSystem : EntitySystem
{
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;