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

@@ -14,7 +14,7 @@ namespace Content.Shared.Pulling.Components
[NetworkedComponent()]
[Friend(typeof(SharedPullingStateManagementSystem))]
[RegisterComponent]
public class SharedPullableComponent : Component
public sealed class SharedPullableComponent : Component
{
public float? MaxDistance => PullJoint?.MaxLength;
@@ -88,7 +88,7 @@ namespace Content.Shared.Pulling.Components
}
[Serializable, NetSerializable]
public class PullableComponentState : ComponentState
public sealed class PullableComponentState : ComponentState
{
public readonly EntityUid? Puller;

View File

@@ -7,7 +7,7 @@ namespace Content.Shared.Pulling.Components
{
[RegisterComponent]
[Friend(typeof(SharedPullingStateManagementSystem))]
public class SharedPullerComponent : Component
public sealed class SharedPullerComponent : Component
{
// Before changing how this is updated, please see SharedPullerSystem.RefreshMovementSpeed
public float WalkSpeedModifier => Pulling == default ? 1.0f : 0.75f;

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Physics.Pull
{
public class PullAttemptMessage : PullMessage
public sealed class PullAttemptMessage : PullMessage
{
public PullAttemptMessage(IPhysBody puller, IPhysBody pulled) : base(puller, pulled) { }

View File

@@ -3,7 +3,7 @@ using Robust.Shared.Physics;
namespace Content.Shared.Physics.Pull
{
public class PullMessage : EntityEventArgs
public abstract class PullMessage : EntityEventArgs
{
public readonly IPhysBody Puller;
public readonly IPhysBody Pulled;

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Physics.Pull
{
public class PullStartedMessage : PullMessage
public sealed class PullStartedMessage : PullMessage
{
public PullStartedMessage(IPhysBody puller, IPhysBody pulled) :
base(puller, pulled)

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Physics.Pull
{
public class PullStoppedMessage : PullMessage
public sealed class PullStoppedMessage : PullMessage
{
public PullStoppedMessage(IPhysBody puller, IPhysBody pulled) : base(puller, pulled)
{

View File

@@ -5,7 +5,7 @@ namespace Content.Shared.Pulling.Events
/// <summary>
/// Directed event raised on the puller to see if it can start pulling something.
/// </summary>
public class StartPullAttemptEvent : CancellableEntityEventArgs
public sealed class StartPullAttemptEvent : CancellableEntityEventArgs
{
public StartPullAttemptEvent(EntityUid puller, EntityUid pulled)
{

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Pulling
{
public class PullableMoveMessage : EntityEventArgs
public sealed class PullableMoveMessage : EntityEventArgs
{
}
}

View File

@@ -2,7 +2,7 @@
namespace Content.Shared.Pulling
{
public class PullableStopMovingMessage : EntityEventArgs
public sealed class PullableStopMovingMessage : EntityEventArgs
{
}
}

View File

@@ -6,7 +6,7 @@ using Robust.Shared.IoC;
namespace Content.Shared.Pulling.Systems
{
public class SharedPullableSystem : EntitySystem
public sealed class SharedPullableSystem : EntitySystem
{
[Dependency] private readonly ActionBlockerSystem _blocker = default!;
[Dependency] private readonly SharedPullingSystem _pullSystem = default!;

View File

@@ -27,7 +27,7 @@ namespace Content.Shared.Pulling
/// Because pulling state is such a mess to get right, all writes to pulling state must go through this class.
/// </summary>
[UsedImplicitly]
public class SharedPullingStateManagementSystem : EntitySystem
public sealed class SharedPullingStateManagementSystem : EntitySystem
{
[Dependency] private readonly SharedJointSystem _jointSystem = default!;
[Dependency] private readonly SharedPhysicsSystem _physics = default!;