Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) { }
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Pulling
|
||||
{
|
||||
public class PullableMoveMessage : EntityEventArgs
|
||||
public sealed class PullableMoveMessage : EntityEventArgs
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Pulling
|
||||
{
|
||||
public class PullableStopMovingMessage : EntityEventArgs
|
||||
public sealed class PullableStopMovingMessage : EntityEventArgs
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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!;
|
||||
|
||||
@@ -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!;
|
||||
|
||||
Reference in New Issue
Block a user