Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -9,7 +9,7 @@ namespace Content.Server.DeviceNetwork.Components
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ApcNetworkSystem))]
|
||||
[ComponentProtoName("ApcNetworkConnection")]
|
||||
public class ApcNetworkComponent : Component
|
||||
public sealed class ApcNetworkComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The node Group the ApcNetworkConnection is connected to
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.DeviceNetwork.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("DeviceNetworkComponent")]
|
||||
public class DeviceNetworkComponent : Component
|
||||
public sealed class DeviceNetworkComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// Valid device network NetIDs.
|
||||
|
||||
@@ -7,7 +7,7 @@ namespace Content.Server.DeviceNetwork.Components.Devices
|
||||
{
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(ApcNetSwitchSystem))]
|
||||
public class ApcNetSwitchComponent : Component
|
||||
public sealed class ApcNetSwitchComponent : Component
|
||||
{
|
||||
[ViewVariables] public bool State;
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@ namespace Content.Server.DeviceNetwork.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("WiredNetworkConnection")]
|
||||
public class WiredNetworkComponent : Component
|
||||
public sealed class WiredNetworkComponent : Component
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace Content.Server.DeviceNetwork.Components
|
||||
/// </summary>
|
||||
[RegisterComponent]
|
||||
[ComponentProtoName("WirelessNetworkConnection")]
|
||||
public class WirelessNetworkComponent : Component
|
||||
public sealed class WirelessNetworkComponent : Component
|
||||
{
|
||||
[DataField("range")]
|
||||
public int Range { get; set; }
|
||||
|
||||
@@ -5,7 +5,7 @@ using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Content.Server.DeviceNetwork
|
||||
{
|
||||
public class NetworkPayload : Dictionary<string, object>
|
||||
public sealed class NetworkPayload : Dictionary<string, object>
|
||||
{
|
||||
/// <summary>
|
||||
/// Tries to get a value from the payload and checks if that value is of type T.
|
||||
|
||||
@@ -9,7 +9,7 @@ using Robust.Shared.IoC;
|
||||
namespace Content.Server.DeviceNetwork.Systems
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public class ApcNetworkSystem : EntitySystem
|
||||
public sealed class ApcNetworkSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Server.DeviceNetwork.Systems
|
||||
/// Device networking allows machines and devices to communicate with each other while adhering to restrictions like range or being connected to the same powernet.
|
||||
/// </summary>
|
||||
[UsedImplicitly]
|
||||
public class DeviceNetworkSystem : EntitySystem
|
||||
public sealed class DeviceNetworkSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly IRobustRandom _random = default!;
|
||||
|
||||
@@ -236,7 +236,7 @@ namespace Content.Server.DeviceNetwork.Systems
|
||||
/// Event raised before a device network packet is send.
|
||||
/// Subscribed to by other systems to prevent the packet from being sent.
|
||||
/// </summary>
|
||||
public class BeforePacketSentEvent : CancellableEntityEventArgs
|
||||
public sealed class BeforePacketSentEvent : CancellableEntityEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The EntityUid of the entity the packet was sent from.
|
||||
@@ -252,7 +252,7 @@ namespace Content.Server.DeviceNetwork.Systems
|
||||
/// <summary>
|
||||
/// Event raised when a device network packet gets sent.
|
||||
/// </summary>
|
||||
public class PacketSentEvent : EntityEventArgs
|
||||
public sealed class PacketSentEvent : EntityEventArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The frequency the packet is sent on.
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
|
||||
namespace Content.Server.DeviceNetwork.Systems
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public class WiredNetworkSystem : EntitySystem
|
||||
public sealed class WiredNetworkSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
@@ -5,7 +5,7 @@ using Robust.Shared.GameObjects;
|
||||
namespace Content.Server.DeviceNetwork.Systems
|
||||
{
|
||||
[UsedImplicitly]
|
||||
public class WirelessNetworkSystem : EntitySystem
|
||||
public sealed class WirelessNetworkSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user