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

@@ -11,7 +11,7 @@ using Robust.Shared.Random;
namespace Content.Server.Body.Commands
{
[AdminCommand(AdminFlags.Fun)]
class AddHandCommand : IConsoleCommand
sealed class AddHandCommand : IConsoleCommand
{
public const string DefaultHandPrototype = "LeftHandHuman";

View File

@@ -9,7 +9,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Body.Commands
{
[AdminCommand(AdminFlags.Fun)]
public class AttachBodyPartCommand : IConsoleCommand
public sealed class AttachBodyPartCommand : IConsoleCommand
{
public string Command => "attachbodypart";
public string Description => "Attaches a body part to you or someone else.";

View File

@@ -10,7 +10,7 @@ using Robust.Shared.Random;
namespace Content.Server.Body.Commands
{
[AdminCommand(AdminFlags.Fun)]
class DestroyMechanismCommand : IConsoleCommand
sealed class DestroyMechanismCommand : IConsoleCommand
{
public string Command => "destroymechanism";
public string Description => "Destroys a mechanism from your entity";

View File

@@ -12,7 +12,7 @@ using Robust.Shared.Random;
namespace Content.Server.Body.Commands
{
[AdminCommand(AdminFlags.Fun)]
class RemoveHandCommand : IConsoleCommand
sealed class RemoveHandCommand : IConsoleCommand
{
public string Command => "removehand";
public string Description => "Removes a hand from your entity.";

View File

@@ -11,7 +11,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Body.Components
{
[RegisterComponent, Friend(typeof(BloodstreamSystem))]
public class BloodstreamComponent : Component
public sealed class BloodstreamComponent : Component
{
/// <summary>
/// Max volume of internal solution storage

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Body.Components
{
[RegisterComponent]
[ComponentReference(typeof(SharedBodyComponent))]
public class BodyComponent : SharedBodyComponent
public sealed class BodyComponent : SharedBodyComponent
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Body.Components
{
[RegisterComponent]
[ComponentReference(typeof(SharedBodyPartComponent))]
public class BodyPartComponent : SharedBodyPartComponent
public sealed class BodyPartComponent : SharedBodyPartComponent
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Body.Components
[RegisterComponent]
[ComponentReference(typeof(IActivate))]
[ComponentReference(typeof(SharedBodyScannerComponent))]
public class BodyScannerComponent : SharedBodyScannerComponent, IActivate
public sealed class BodyScannerComponent : SharedBodyScannerComponent, IActivate
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Body.Components
{
[RegisterComponent, Friend(typeof(BrainSystem))]
public class BrainComponent : Component
public sealed class BrainComponent : Component
{
}
}

View File

@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Body.Components
{
[RegisterComponent]
public class InternalsComponent : Component
public sealed class InternalsComponent : Component
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -15,7 +15,7 @@ namespace Content.Server.Body.Components
/// Handles metabolizing various reagents with given effects.
/// </summary>
[RegisterComponent, Friend(typeof(MetabolizerSystem))]
public class MetabolizerComponent : Component
public sealed class MetabolizerComponent : Component
{
public float AccumulatedFrametime = 0.0f;
@@ -74,7 +74,7 @@ namespace Content.Server.Body.Components
/// This allows metabolizers to remove certain groups much faster, or not at all.
/// </summary>
[DataDefinition]
public class MetabolismGroupEntry
public sealed class MetabolismGroupEntry
{
[DataField("id", required: true, customTypeSerializer:typeof(PrototypeIdSerializer<MetabolismGroupPrototype>))]
public string Id = default!;

View File

@@ -10,7 +10,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Body.Components
{
[RegisterComponent, Friend(typeof(StomachSystem))]
public class StomachComponent : Component
public sealed class StomachComponent : Component
{
public float AccumulatedFrameTime;
@@ -48,7 +48,7 @@ namespace Content.Server.Body.Components
/// <summary>
/// Used to track quantity changes when ingesting & digesting reagents
/// </summary>
public class ReagentDelta
public sealed class ReagentDelta
{
public readonly string ReagentId;
public readonly FixedPoint2 Quantity;

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Body.Components;
[RegisterComponent]
[Friend(typeof(ThermalRegulatorSystem))]
public class ThermalRegulatorComponent : Component
public sealed class ThermalRegulatorComponent : Component
{
/// <summary>
/// Heat generated due to metabolism. It's generated via metabolism

View File

@@ -10,7 +10,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Body.Systems;
public class BloodstreamSystem : EntitySystem
public sealed class BloodstreamSystem : EntitySystem
{
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;
[Dependency] private readonly AtmosphereSystem _atmosSystem = default!;

View File

@@ -9,7 +9,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Body.Systems
{
public class BrainSystem : EntitySystem
public sealed class BrainSystem : EntitySystem
{
public override void Initialize()
{

View File

@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Body.Systems;
public class InternalsSystem : EntitySystem
public sealed class InternalsSystem : EntitySystem
{
public override void Initialize()
{

View File

@@ -12,7 +12,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Body.Systems;
public class LungSystem : EntitySystem
public sealed class LungSystem : EntitySystem
{
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;
[Dependency] private readonly AtmosphereSystem _atmosphereSystem = default!;

View File

@@ -18,7 +18,7 @@ using Robust.Shared.Random;
namespace Content.Server.Body.Systems
{
[UsedImplicitly]
public class MetabolizerSystem : EntitySystem
public sealed class MetabolizerSystem : EntitySystem
{
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;
[Dependency] private readonly IPrototypeManager _prototypeManager = default!;

View File

@@ -21,7 +21,7 @@ using Robust.Shared.Timing;
namespace Content.Server.Body.Systems
{
[UsedImplicitly]
public class RespiratorSystem : EntitySystem
public sealed class RespiratorSystem : EntitySystem
{
[Dependency] private readonly DamageableSystem _damageableSys = default!;
[Dependency] private readonly AdminLogSystem _logSys = default!;
@@ -192,12 +192,12 @@ namespace Content.Server.Body.Systems
}
}
public class InhaleLocationEvent : EntityEventArgs
public sealed class InhaleLocationEvent : EntityEventArgs
{
public GasMixture? Gas;
}
public class ExhaleLocationEvent : EntityEventArgs
public sealed class ExhaleLocationEvent : EntityEventArgs
{
public GasMixture? Gas;
}

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Body.Systems
{
public class StomachSystem : EntitySystem
public sealed class StomachSystem : EntitySystem
{
[Dependency] private readonly SolutionContainerSystem _solutionContainerSystem = default!;

View File

@@ -8,7 +8,7 @@ using Robust.Shared.IoC;
namespace Content.Server.Body.Systems;
public class ThermalRegulatorSystem : EntitySystem
public sealed class ThermalRegulatorSystem : EntitySystem
{
[Dependency] private readonly TemperatureSystem _tempSys = default!;
[Dependency] private readonly ActionBlockerSystem _actionBlockerSys = default!;