mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
23 lines
731 B
C#
23 lines
731 B
C#
using Content.Shared.Movement.Systems;
|
|
using Robust.Shared.GameStates;
|
|
|
|
namespace Content.Shared.Movement.Components;
|
|
|
|
/// <summary>
|
|
/// This is used to apply a friction modifier to an entity temporarily
|
|
/// </summary>
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState, Access(typeof(MovementModStatusSystem))]
|
|
public sealed partial class FrictionStatusEffectComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// Friction modifier applied as a status.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float FrictionModifier = 1f;
|
|
|
|
/// <summary>
|
|
/// Acceleration modifier applied as a status.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public float AccelerationModifier = 1f;
|
|
}
|