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

@@ -35,7 +35,7 @@ namespace Content.Server.Chemistry.Components
[RegisterComponent]
[ComponentReference(typeof(IActivate))]
[ComponentReference(typeof(SharedChemMasterComponent))]
public class ChemMasterComponent : SharedChemMasterComponent, IActivate
public sealed class ChemMasterComponent : SharedChemMasterComponent, IActivate
{
[Dependency] private readonly IEntityManager _entities = default!;

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.Components
{
[RegisterComponent]
[ComponentReference(typeof(SolutionAreaEffectComponent))]
public class FoamSolutionAreaEffectComponent : SolutionAreaEffectComponent
public sealed class FoamSolutionAreaEffectComponent : SolutionAreaEffectComponent
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -34,7 +34,7 @@ namespace Content.Server.Chemistry.Components
/// containers, and can directly inject into a mobs bloodstream.
/// </summary>
[RegisterComponent]
public class InjectorComponent : SharedInjectorComponent
public sealed class InjectorComponent : SharedInjectorComponent
{
public const string SolutionName = "injector";

View File

@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Chemistry.Components
{
[RegisterComponent]
public class MeleeChemicalInjectorComponent : Component
public sealed class MeleeChemicalInjectorComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("transferAmount")]

View File

@@ -37,7 +37,7 @@ namespace Content.Server.Chemistry.Components
[RegisterComponent]
[ComponentReference(typeof(IActivate))]
[ComponentReference(typeof(SharedReagentDispenserComponent))]
public class ReagentDispenserComponent : SharedReagentDispenserComponent, IActivate
public sealed class ReagentDispenserComponent : SharedReagentDispenserComponent, IActivate
{
private static ReagentInventoryComparer _comparer = new();
public static string SolutionName = "reagent";
@@ -302,7 +302,7 @@ namespace Content.Server.Chemistry.Components
SoundSystem.Play(Filter.Pvs(Owner), _clickSound.GetSound(), Owner, AudioParams.Default.WithVolume(-2f));
}
private class ReagentInventoryComparer : Comparer<ReagentDispenserInventoryEntry>
private sealed class ReagentInventoryComparer : Comparer<ReagentDispenserInventoryEntry>
{
public override int Compare(ReagentDispenserInventoryEntry x, ReagentDispenserInventoryEntry y)
{

View File

@@ -8,7 +8,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Chemistry.Components
{
[RegisterComponent]
public class ReagentTankComponent : Component
public sealed class ReagentTankComponent : Component
{
[DataField("transferAmount")]
[ViewVariables(VVAccess.ReadWrite)]

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components
/// But specifically, this component deletes the entity and spawns in a new entity when the entity is exposed to a given reagent.
/// </summary>
[RegisterComponent]
public class RehydratableComponent : Component
public sealed class RehydratableComponent : Component
{
[ViewVariables]
[DataField("catalyst")]

View File

@@ -12,7 +12,7 @@ namespace Content.Server.Chemistry.Components
{
[RegisterComponent]
[ComponentReference(typeof(SolutionAreaEffectComponent))]
public class SmokeSolutionAreaEffectComponent : SolutionAreaEffectComponent
public sealed class SmokeSolutionAreaEffectComponent : SolutionAreaEffectComponent
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components
/// </summary>
/// <remarks> It should only be manually added to an entity by the <see cref="SolutionAreaEffectComponent"/> and not with a prototype.</remarks>
[RegisterComponent]
public class SolutionAreaEffectInceptionComponent : Component
public sealed class SolutionAreaEffectInceptionComponent : Component
{
private const float ReactionDelay = 1.5f;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager
/// Think pouring this or draining from a water tank.
/// </summary>
[RegisterComponent]
public class DrainableSolutionComponent : Component
public sealed class DrainableSolutionComponent : Component
{
/// <summary>
/// Solution name that can be drained.

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager
/// Denotes the solution that can removed be with syringes.
/// </summary>
[RegisterComponent]
public class DrawableSolutionComponent : Component
public sealed class DrawableSolutionComponent : Component
{
/// <summary>
/// Solution name that can be removed with syringes.

View File

@@ -5,7 +5,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Chemistry.Components.SolutionManager
{
[RegisterComponent]
public class ExaminableSolutionComponent: Component
public sealed class ExaminableSolutionComponent: Component
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("solution")]

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager
/// Denotes a solution which can be added with syringes.
/// </summary>
[RegisterComponent]
public class InjectableSolutionComponent : Component
public sealed class InjectableSolutionComponent : Component
{
/// <summary>

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager
/// tank of a car.
/// </summary>
[RegisterComponent]
public class RefillableSolutionComponent : Component
public sealed class RefillableSolutionComponent : Component
{
/// <summary>
/// Solution name that can added to easily.

View File

@@ -11,7 +11,7 @@ namespace Content.Server.Chemistry.Components.SolutionManager
{
[RegisterComponent]
[Friend(typeof(SolutionContainerSystem))]
public class SolutionContainerManagerComponent : Component
public sealed class SolutionContainerManagerComponent : Component
{
[ViewVariables]
[DataField("solutions")]

View File

@@ -9,7 +9,7 @@ using Robust.Shared.Utility;
namespace Content.Server.Chemistry.Components
{
[RegisterComponent]
public class TransformableContainerComponent : Component
public sealed class TransformableContainerComponent : Component
{
[Dependency] private readonly IEntityManager _entMan = default!;