Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -4,7 +4,7 @@ using Robust.Shared.GameObjects;
|
||||
namespace Content.Server.Power.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
public class ActivatableUIRequiresPowerComponent : Component
|
||||
public sealed class ActivatableUIRequiresPowerComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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; }
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user