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

@@ -4,7 +4,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Power.Components
{
[RegisterComponent]
public class ActivatableUIRequiresPowerComponent : Component
public sealed class ActivatableUIRequiresPowerComponent : Component
{
}
}

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Power.Components;
[RegisterComponent]
[Friend(typeof(ApcSystem))]
public class ApcComponent : BaseApcNetComponent
public sealed class ApcComponent : BaseApcNetComponent
{
[DataField("onReceiveMessageSound")]
public SoundSpecifier OnReceiveMessageSound = new SoundPathSpecifier("/Audio/Machines/machine_switch.ogg");

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Power.Components
{
[RegisterComponent]
[ComponentProtoName("PowerProvider")]
public class ApcPowerProviderComponent : BaseApcNetComponent
public sealed class ApcPowerProviderComponent : BaseApcNetComponent
{
[ViewVariables] public List<ApcPowerReceiverComponent> LinkedReceivers { get; } = new();

View File

@@ -21,7 +21,7 @@ namespace Content.Server.Power.Components
/// </summary>
[RegisterComponent]
#pragma warning disable 618
public class ApcPowerReceiverComponent : Component, IExamine
public sealed class ApcPowerReceiverComponent : Component, IExamine
#pragma warning restore 618
{
[Dependency] private readonly IEntityManager _entMan = default!;
@@ -105,7 +105,7 @@ namespace Content.Server.Power.Components
}
#pragma warning disable 618
public class PowerChangedMessage : ComponentMessage
public sealed class PowerChangedMessage : ComponentMessage
#pragma warning restore 618
{
public readonly bool Powered;

View File

@@ -7,7 +7,7 @@ namespace Content.Server.Power.Components
/// Connects the loading side of a <see cref="BatteryComponent"/> to a non-APC power network.
/// </summary>
[RegisterComponent]
public class BatteryChargerComponent : BasePowerNetComponent
public sealed class BatteryChargerComponent : BasePowerNetComponent
{
protected override void AddSelfToNet(IPowerNet net)
{

View File

@@ -11,6 +11,7 @@ namespace Content.Server.Power.Components
/// Battery node on the pow3r network. Needs other components to connect to actual networks.
/// </summary>
[RegisterComponent]
[Virtual]
public class BatteryComponent : Component
{
[Dependency] private readonly IEntityManager _entMan = default!;

View File

@@ -4,7 +4,7 @@ using Robust.Shared.GameObjects;
namespace Content.Server.Power.Components
{
[RegisterComponent]
public class BatteryDischargerComponent : BasePowerNetComponent
public sealed class BatteryDischargerComponent : BasePowerNetComponent
{
protected override void AddSelfToNet(IPowerNet net)
{

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Power.Components
/// Self-recharging battery.
/// </summary>
[RegisterComponent]
public class BatterySelfRechargerComponent : Component
public sealed class BatterySelfRechargerComponent : Component
{
[ViewVariables(VVAccess.ReadWrite)] [DataField("autoRecharge")] public bool AutoRecharge { get; set; }

View File

@@ -13,7 +13,7 @@ namespace Content.Server.Power.Components
/// </summary>
[RegisterComponent]
[Friend(typeof(CableSystem))]
public class CableComponent : Component
public sealed class CableComponent : Component
{
[DataField("cableDroppedOnCutPrototype", customTypeSerializer: typeof(PrototypeIdSerializer<EntityPrototype>))]
public readonly string CableDroppedOnCutPrototype = "CableHVStack1";

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Power.Components
{
[RegisterComponent]
#pragma warning disable 618
public class ExaminableBatteryComponent : Component, IExamine
public sealed class ExaminableBatteryComponent : Component, IExamine
#pragma warning restore 618
{
[Dependency] private readonly IEntityManager _entityManager = default!;

View File

@@ -9,7 +9,7 @@ namespace Content.Server.Power.Components
{
[RegisterComponent]
[Friend(typeof(ExtensionCableSystem))]
public class ExtensionCableProviderComponent : Component
public sealed class ExtensionCableProviderComponent : Component
{
/// <summary>
/// The max distance this can connect to <see cref="ExtensionCableReceiverComponent"/>s from.

View File

@@ -8,7 +8,7 @@ namespace Content.Server.Power.Components
{
[RegisterComponent]
[Friend(typeof(ExtensionCableSystem))]
public class ExtensionCableReceiverComponent : Component
public sealed class ExtensionCableReceiverComponent : Component
{
[ViewVariables]
public ExtensionCableProviderComponent? Provider { get; set; }

View File

@@ -10,7 +10,7 @@ namespace Content.Server.Power.Components
/// Draws power directly from an MV or HV wire it is on top of.
/// </summary>
[RegisterComponent]
public class PowerConsumerComponent : BaseNetConnectorComponent<IBasePowerNet>
public sealed class PowerConsumerComponent : BaseNetConnectorComponent<IBasePowerNet>
{
/// <summary>
/// How much power this needs to be fully powered.

View File

@@ -7,7 +7,7 @@ using Robust.Shared.ViewVariables;
namespace Content.Server.Power.Components
{
[RegisterComponent]
public class PowerSupplierComponent : BasePowerNetComponent
public sealed class PowerSupplierComponent : BasePowerNetComponent
{
[ViewVariables(VVAccess.ReadWrite)]
[DataField("supplyRate")]