Seal/abstract/virtual everything (#6739)
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Content.Shared.Movement.Components
|
||||
{
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(IMoverComponent))]
|
||||
public class SharedDummyInputMoverComponent : Component, IMoverComponent
|
||||
public sealed class SharedDummyInputMoverComponent : Component, IMoverComponent
|
||||
{
|
||||
public bool IgnorePaused => false;
|
||||
public float CurrentWalkSpeed => 0f;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace Content.Shared.Movement.Components
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(IMoverComponent))]
|
||||
[NetworkedComponent()]
|
||||
public class SharedPlayerInputMoverComponent : Component, IMoverComponent
|
||||
public sealed class SharedPlayerInputMoverComponent : Component, IMoverComponent
|
||||
{
|
||||
// This class has to be able to handle server TPS being lower than client FPS.
|
||||
// While still having perfectly responsive movement client side.
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Content.Shared.Movement.Components
|
||||
[RegisterComponent]
|
||||
[ComponentReference(typeof(IMobMoverComponent))]
|
||||
[NetworkedComponent()]
|
||||
public class SharedPlayerMobMoverComponent : Component, IMobMoverComponent
|
||||
public sealed class SharedPlayerMobMoverComponent : Component, IMobMoverComponent
|
||||
{
|
||||
private float _stepSoundDistance;
|
||||
[DataField("grabRange")]
|
||||
|
||||
@@ -6,7 +6,7 @@ using Robust.Shared.ViewVariables;
|
||||
namespace Content.Shared.Movement.Components;
|
||||
|
||||
[NetworkedComponent, RegisterComponent]
|
||||
public class SlowContactsComponent : Component
|
||||
public sealed class SlowContactsComponent : Component
|
||||
{
|
||||
[ViewVariables, DataField("walkSpeedModifier")]
|
||||
public float WalkSpeedModifier { get; private set; } = 1.0f;
|
||||
|
||||
@@ -7,6 +7,6 @@ namespace Content.Shared.Movement.Components;
|
||||
/// Exists just to listen to a single event. What a life.
|
||||
/// </summary>
|
||||
[NetworkedComponent, RegisterComponent]
|
||||
public class SlowsOnContactComponent : Component
|
||||
public sealed class SlowsOnContactComponent : Component
|
||||
{
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Content.Shared.Movement.EntitySystems
|
||||
/// should hook into this event and set it then. If you want this event to be raised,
|
||||
/// call <see cref="MovementSpeedModifierSystem.RefreshMovementSpeedModifiers"/>.
|
||||
/// </summary>
|
||||
public class RefreshMovementSpeedModifiersEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
public sealed class RefreshMovementSpeedModifiersEvent : EntityEventArgs, IInventoryRelayEvent
|
||||
{
|
||||
public SlotFlags TargetSlots { get; } = ~SlotFlags.POCKET;
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ using Robust.Shared.Physics.Dynamics;
|
||||
|
||||
namespace Content.Shared.Movement.EntitySystems;
|
||||
|
||||
public class SlowContactsSystem : EntitySystem
|
||||
public sealed class SlowContactsSystem : EntitySystem
|
||||
{
|
||||
[Dependency] private readonly SharedPhysicsSystem _physics = default!;
|
||||
[Dependency] private readonly MovementSpeedModifierSystem _speedModifierSystem = default!;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Content.Shared.Movement
|
||||
{
|
||||
public class MovementAttemptEvent : CancellableEntityEventArgs
|
||||
public sealed class MovementAttemptEvent : CancellableEntityEventArgs
|
||||
{
|
||||
public MovementAttemptEvent(EntityUid uid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user